[TIMOB-26097] Hyperloop: iOS 12 - Using CocoaPods in Hyperloop does not work with Xcode 10
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-09-06T06:09:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.4.0, Hyperloop 3.1.3 |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Jan Vennemann |
Created | 2018-06-05T19:58:10.000+0000 |
Updated | 2018-09-06T06:09:38.000+0000 |
Description
When using Xcode 10, Hyperloop errors if the app includes CocoaPods dependencies:
[INFO] Starting Hyperloop assembly
Error: ENOENT: no such file or directory, stat '/Users/hknoechel/Documents/Apps/hyperloop-examples/build/iphone/build/Products/Debug-iphonesimulator/GLCalendarView/GLCalendarView.framework/Headers/GLCalendarView-umbrella.h'
at Object.fs.statSync (fs.js:948:11)
at Object.statSync (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.2.0/hooks/node_modules/hyperloop-metabase/node_modules/graceful-fs/polyfills.js:297:22)
at ModuleMetadata.getHeaders (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.2.0/hooks/node_modules/hyperloop-metabase/lib/module_metadata.js:227:20)
at Object.generateFrameworkMetabase (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.2.0/hooks/node_modules/hyperloop-metabase/lib/metabase.js:50:29)
at ModuleMetadata.generateMetabase (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.2.0/hooks/node_modules/hyperloop-metabase/lib/module_metadata.js:197:22)
at ModuleMetadata.getDependencies (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.2.0/hooks/node_modules/hyperloop-metabase/lib/module_metadata.js:210:15)
at Promise.all.toGet.map.name (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.2.0/hooks/node_modules/hyperloop-metabase/lib/metabase.js:176:20)
at Array.map (<anonymous>)
at getDependencies (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.2.0/hooks/node_modules/hyperloop-metabase/lib/metabase.js:173:27)
at Object.unifiedMetabase (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.2.0/hooks/node_modules/hyperloop-metabase/lib/metabase.js:203:9)
---------------------------------------------
Before, there was also an issue with cleaning the build directory, which is addressed via [this PR](https://github.com/appcelerator/titanium_mobile/pull/10123) already.
[~jvennemann] For some reason, this seems to happen with every project, although I was able to run a simple app without issues.
[~hknoechel], according to your stack trace it seems like you tested with build that already includes the new metabase parser. However is discovered a different bug which i addressed in https://github.com/appcelerator/hyperloop.next/pull/300
Hyperloop 3.1.2 Beta can be checked [here](https://github.com/appcelerator-modules/hyperloop-builds/releases/tag/v3.1.2-beta.1).
*Closing ticket.* Verified fix in SDK version
7.4.0.v20180829013317
and7.5.0.v20180904155047
. Able to build the Hyperloop examples app using ios 12 by using the Hyperloop build from https://github.com/appcelerator-modules/hyperloop-builds/releases/tag/v3.1.3. *Environment*