Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26097] Hyperloop: iOS 12 - Using CocoaPods in Hyperloop does not work with Xcode 10

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2018-09-06T06:09:35.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.4.0, Hyperloop 3.1.3
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeJan Vennemann
Created2018-06-05T19:58:10.000+0000
Updated2018-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.

Comments

  1. Hans Knöchel 2018-06-07

    [~jvennemann] For some reason, this seems to happen with every project, although I was able to run a simple app without issues.
  2. Jan Vennemann 2018-08-11

    [~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
  3. Hans Knöchel 2018-08-21

    Hyperloop 3.1.2 Beta can be checked [here](https://github.com/appcelerator-modules/hyperloop-builds/releases/tag/v3.1.2-beta.1).
  4. Samir Mohammed 2018-09-06

    *Closing ticket.* Verified fix in SDK version 7.4.0.v20180829013317 and 7.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*
       CocoaPods 1.4.0
       iPhone 7 plus Sim (12.0)
       Apple Watch Series 3
       APPC CLI: 7.0.6
       Operating System Name: Mac OS High Sierra
       Operating System Version: 10.13.6
       Node.js Version: 8.9.1
       Xcode 10.0 beta 6
       

JSON Source