[AC-5364] Hyperloop - iOS - Couldn't find module iosdfulibrary from Pod
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2017-11-12T12:06:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | hyperloop, ios |
Reporter | Joe Falcone |
Assignee | Shak Hossain |
Created | 2017-11-11T00:28:27.000+0000 |
Updated | 2017-11-12T12:07:06.000+0000 |
Description
We're trying to use the Nordic Semiconductor iOSDFULibrary Pod with the Hyperloop-examples test program with Hyperloop 2.2.2. We've just inserted the following statement in the "beacons.js" file:
iOSDFULibrary = require("iOSDFULibrary/iOSDFULibrary"),
which causes the error when you click on the iBeacons menu item.
{color:red}[ERROR] : Script Error Couldn't find module: /hyperloop/iosdfulibrary/iosdfulibrary for architecture: x86_64{color}
The Podfile is
install! 'cocoapods',
:integrate_targets => false
platform :ios, '8.0'
use_frameworks!
target 'Hyperloop_Sample' do
pod 'JBChartView'
pod 'GLCalendarView', '~> 1.2'
pod 'Shimmer'
pod 'iOSDFULibrary'
pod 'Zip'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
The last few lines of the log seem to indicate that the module is available but it isn't found nonetheless
{panel:title=log}
[DEBUG] : Loading: /Users/jrf/Library/Developer/CoreSimulator/Devices/88EBE46A-7202-4E84-8CF2-D18FEA477C6A/data/Containers/Bundle/Application/566C0574-415B-45C1-AA97-1B5CA043B34B/Hyperloop_Sample.app/hyperloop/iosdfulibrary/iosdfulibrary, Resource: hyperloop/iosdfulibrary/iosdfulibrary
[DEBUG] : Loading: /Users/jrf/Library/Developer/CoreSimulator/Devices/88EBE46A-7202-4E84-8CF2-D18FEA477C6A/data/Containers/Bundle/Application/566C0574-415B-45C1-AA97-1B5CA043B34B/Hyperloop_Sample.app/hyperloop/iosdfulibrary/iosdfulibrary.js, Resource: hyperloop/iosdfulibrary/iosdfulibrary_js
[DEBUG] : Loading: /Users/jrf/Library/Developer/CoreSimulator/Devices/88EBE46A-7202-4E84-8CF2-D18FEA477C6A/data/Containers/Bundle/Application/566C0574-415B-45C1-AA97-1B5CA043B34B/Hyperloop_Sample.app/hyperloop/iosdfulibrary/iosdfulibrary.json, Resource: hyperloop/iosdfulibrary/iosdfulibrary_json
[DEBUG] : Loading: /Users/jrf/Library/Developer/CoreSimulator/Devices/88EBE46A-7202-4E84-8CF2-D18FEA477C6A/data/Containers/Bundle/Application/566C0574-415B-45C1-AA97-1B5CA043B34B/Hyperloop_Sample.app/hyperloop/iosdfulibrary/iosdfulibrary/package.json, Resource: hyperloop/iosdfulibrary/iosdfulibrary/package_json
[DEBUG] : Loading: /Users/jrf/Library/Developer/CoreSimulator/Devices/88EBE46A-7202-4E84-8CF2-D18FEA477C6A/data/Containers/Bundle/Application/566C0574-415B-45C1-AA97-1B5CA043B34B/Hyperloop_Sample.app/hyperloop/iosdfulibrary/iosdfulibrary/index.js, Resource: hyperloop/iosdfulibrary/iosdfulibrary/index_js
[DEBUG] : Loading: /Users/jrf/Library/Developer/CoreSimulator/Devices/88EBE46A-7202-4E84-8CF2-D18FEA477C6A/data/Containers/Bundle/Application/566C0574-415B-45C1-AA97-1B5CA043B34B/Hyperloop_Sample.app/hyperloop/iosdfulibrary/iosdfulibrary/index.json, Resource: hyperloop/iosdfulibrary/iosdfulibrary/index_json
[ERROR] : Script Error Couldn't find module: /hyperloop/iosdfulibrary/iosdfulibrary for architecture: x86_64
{panel}
Attachments
File | Date | Size |
---|---|---|
log.rtf | 2017-11-11T00:22:00.000+0000 | 1003084 |
It appears that the Hyperloop Pod mechanism is fragile. I decided to try the Contentful Swift Pod and added the require('Contentful/Contentful') to the Hyperloop-examples app and I got the same error as with iOSDFULibrary: [ERROR] : Script Error Couldn't find module: /hyperloop/contentful/contentful for architecture: x86_64 I guess the question is how restrictive the environment is for using Pods? Both of these Pods are Swift pods which are supposed to be supported. Was there another regression with 2.2.2?
Pure Swift framework (without the public Objective-C header) are not supported so far. They require a different way of parsing and are tracked in TIMOB-24163. This is not a regression.