[TIMOB-26024] Hyperloop iOS - Compile fails - fatal error .h file not found
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 7.1.1 |
Fix Version/s | n/a |
Components | n/a |
Labels | engSchedule, hyperloop, ios, podfile |
Reporter | David van de Meer |
Assignee | Vijay Singh |
Created | 2018-05-09T09:22:32.000+0000 |
Updated | 2019-05-06T22:27:34.000+0000 |
Description
Im trying to build a new project with JPush ('pod JPush') included in it.
JPush Pod is downloaded successfully, but when I run the build I get this error:
[TRACE] : /User/studio_app_workspace/alloy-hyperloop/build/hyperloop/ios/js/jpush/jpush.m:8:9: fatal error: 'JPush/JPush.h' file not found
[TRACE] : #import <JPush/JPush.h>
[TRACE] : ^~~~~~~~~~~~~~~
[TRACE] : 1 error generated.
When I go in to that "jpush.m" file and simply uncomment the line below everything works fine until I do a major change and it rebuilts the hyperloop js and then I need to uncomment again.
#import <JPush/JPush.h>
Also the actual header that comes with the pod is 'JPUSHService.h' so changing that line to the following also works
#import <JPush/JPUSHService.h>
Steps to reproduce:
1. Create new alloy hyperloop enabled project
2. In your podfile, use pod 'JPush'
3. In a controller, put this:
var JPushClass = require('JPush/JPUSHService');
JPushClass.setDebugMode();
4. Try and build project with the environment mentioned above
Podfile:
This is required for CocoaPods 1.x
install! 'cocoapods',
:integrate_targets => false
platform :ios, '8.0'
use_frameworks!
target 'alloy-hyperloop' do
pod 'Countly', '18.04'
pod 'JPush', '3.0.9'
end
No comments