Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25829] Hyperloop: iOS - CocoaPods 1.4.0 breaks metabase generation

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-03-06T19:31:59.000+0000
Affected Version/sHyperloop 2.2.3, Hyperloop 3.0.1
Fix Version/sRelease 7.1.0, Hyperloop 3.0.3
ComponentsHyperloop, iOS
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2018-03-01T21:56:45.000+0000
Updated2018-08-06T17:49:23.000+0000

Description

There are [reports](https://github.com/appcelerator/hyperloop-examples/issues/75) that Hyperloop does not work with CocoaPods 1.4.0. We should investigate it and add support for the new version. [CocoaPods 1.4.0 Change Log](http://blog.cocoapods.org/CocoaPods-1.4.0/)

Comments

  1. Hans Knöchel 2018-03-02

    Ok, so it seems like they changed the $PODS_CONFIGURATION_BUILD_DIR statement to ${PODS_CONFIGURATION_BUILD_DIR} which then falls through our detection engine. I'll add a fix that uses the old one for CP < 1.4.0 and the new one for 1.4.0+. Workarounds:

    Downgrade to CocoaPods until Hyperloop 3.0.3 is released:

       sudo gem install -v 1.3.1
       sudo gem uninstall -v 1.4.0
       

    Patch your local Hyperloop 3.0.2 version (in <project>/modules/iphone/hyperloop/3.0.2/hooks/node_modules/hyperloop-metabase/lib/metabase.js, line 722:

    Replace:
       frameworkSearchPath = frameworkSearchPath.replace('$PODS_CONFIGURATION_BUILD_DIR', cocoaPodsConfigurationBuildDir);
       
    with
       frameworkSearchPath = frameworkSearchPath.replace('${PODS_CONFIGURATION_BUILD_DIR}', cocoaPodsConfigurationBuildDir);
       
  2. Hans Knöchel 2018-03-02

    PR (master): https://github.com/appcelerator/hyperloop.next/pull/274 PR (3_0_X): https://github.com/appcelerator/hyperloop.next/pull/275 Testing instructions: * Install CocoaPods 1.4.0 (sudo gem install cocoapods) * Run the [hyperloop-examples](https://github.com/appcelerator/hyperloop-examples) app * See that the app does not work due to missing generated stubs * Apply the fix * Re-test with CocoaPods 1.4.0 * Ensure that it works again * Downgrade to CocoaPods 1.3.1 (sudo gem uninstall cocoapods -v 1.4.0, sudo gem install cocoapods -v 1.3.1) * Ensure that it still works
  3. Hans Knöchel 2018-03-04

    3.0.3 module: [Download here](https://github.com/appcelerator-modules/hyperloop-builds/releases/tag/v3.0.3-beta.1)
  4. Hans Knöchel 2018-03-06

    titanium_mobile/master: https://github.com/appcelerator/titanium_mobile/pull/9911 titanium_mobile/7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9912
  5. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source