[AC-6344] Hyperloop + Cocoapods crashes app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2019-09-02T18:04:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | cocoapods, hyperloop |
Reporter | Nathan Martin |
Assignee | Shak Hossain |
Created | 2019-08-23T14:27:46.000+0000 |
Updated | 2019-09-02T18:04:15.000+0000 |
Description
Also attempted with SDK 8.0.1 + Hyperloop 4.0.2 + 'bare-minimum' project with same result.
The app immediately crashes when opening. This is only whenever I include a pod (any pod) in my podifle:
was NULL
error.
However, this error still remains:
//begin podfile
install! 'cocoapods',
:integrate_targets => false
platform :ios, '8.0'
use_frameworks!
target 'ONE' do
pod 'abbi'
end
//end podfile
Attached is full trace.
*Update*
I noticed the "Skipping Hyperloop compile, no usage found ..." line in the trace, so I added
var UIView = require('UIKit/UIView');
to alloy.js in order to force the hyperloop compile.
I still get the following error:
[ERROR] 2019-08-23 09:59:17.214 xcodebuild[8890:16254372] DTDeviceKit: deviceType from 00008020-001C61940C32002E was NULL
[ERROR] 2019-08-23 09:59:17.256 xcodebuild[8890:16254403] DTDeviceKit: deviceType from 00008020-001C61940C32002E was NULL
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/nmartin/Documents/GitHub/MVMobile_V2/build/iphone/build/Intermediates/ONE.build/Debug-iphoneos/ONE.build/Script-000000000000000000000047.sh
[ERROR] (1 failure)
second full trace attached
*Update #2*
I reset my ios simulator, which seems to have taken care of the
deviceType from
ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/nmartin/Documents/GitHub/MVMobile_V2/build/iphone/build/Intermediates/ONE.build/Debug-iphonesimulator/ONE.build/Script-000000000000000000000048.sh
[ERROR] (1 failure)
Looking at this Script (Script-000000000000000000000048.sh
), I see one line:
"root/Target Support Files/Pods-ONE/Pods-ONE-resources.sh"
In my appcelerator project, however, there is no Pods-ONE-resources.sh
file under Target Support Files/Pods-ONE/
Is running
pod install and/or pod update
supposed to put this file into the project?
Attachments
File | Date | Size |
---|---|---|
fullTrace | 2019-08-23T14:19:55.000+0000 | 2373106 |
fullTraceForcedHyperloop | 2019-08-23T15:03:11.000+0000 | 3340410 |
Script-000000000000000000000048.sh | 2019-08-23T16:19:51.000+0000 | 77 |
This is due to Hyperloop incompatibility with CocoaPods 1.6+. Please also see TIMOB-26991. In the meantime using CocoaPods 1.5.x with Hyperloop serves as a temporary workaround.