Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26991] Hyperloop: iOS - Only add CocoaPods scripts if they are needed

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-09-18T20:26:18.000+0000
Affected Version/sHyperloop 4.0.2
Fix Version/sHyperloop 4.0.4
ComponentsHyperloop
LabelsengSchedule
ReporterGabriel S.
AssigneeJan Vennemann
Created2019-03-18T12:13:38.000+0000
Updated2019-09-18T20:26:18.000+0000

Description

When trying to run the "hyperloop-examples" repo (https://github.com/appcelerator/hyperloop-examples) an error shows up because the resources.sh folder (Pods-Hyperloop_Sample-resources.sh) was not created. I didn't run Cocopods independently, the Pods folder was generates by Studio. - Error: [TRACE] : /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Script-000000000000000000000042.sh: line 2: /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/Pods/Target Support Files/Pods-Hyperloop_Sample/Pods-Hyperloop_Sample-resources.sh: No such file or directory\ [TRACE] : Command PhaseScriptExecution failed with a nonzero exit code\ \pard\pardeftab720\partightenfactor0 \cf4 [ERROR] : ** BUILD FAILED **\cf0 \ \cf4 [ERROR] : The following build commands failed:\cf0 \ \cf4 [ERROR] : PhaseScriptExecution [CP]\\ Copy\\ Pods\\ Resources /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Script-000000000000000000000042.sh\cf0 \ \cf4 [ERROR] : (1 failure)\cf0 \ } - That's the code inside hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Script-000000000000000000000042.sh:: #!/bin/sh "${PODS_ROOT}/Target Support Files/Pods-Hyperloop_Sample/Pods-Hyperloop_Sample-resources.sh" - The attached image shows that the resources.sh file is missing.

Attachments

FileDateSize
Screen Shot 2019-03-18 at 09.09.24.png2019-03-18T12:10:38.000+000020297

Comments

  1. Rakhi Mitro 2019-03-20

    Thanks for reaching out with us. Can you please test the issue on SDK 8.0.0.GA and let us know if the problem persists.
  2. Gabriel S. 2019-03-25

    Thanks for taking a look at this Rakhi. I tried again using SDK 8.0.0.GA. The "-resources.sh" file was not created as well. But now a different error shows up:
       [TRACE] :  CompileC /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/webkit.o /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/hyperloop/ios/js/webkit/webkit.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target: Hyperloop_Sample)
       [TRACE] :      cd /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone
       [TRACE] :      export LANG=en_US.US-ASCII
       [TRACE] :      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fmodules -gmodules -fmodules-cache-path=/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wno-parentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Dfoo=bar -DDEPLOYTYPE=development -DDEBUG=1 -DTI_VERSION=8.0.0 -DLAUNCHSCREEN_STORYBOARD=1 -DDEFAULT_BGCOLOR_RED=0.7803921568627451 -DDEFAULT_BGCOLOR_GREEN=0.09411764705882353 -DDEFAULT_BGCOLOR_BLUE=0.17254901960784313 -DTI_LOG_SERVER_PORT=45168 -DCOCOAPODS=1 -DHYPERLOOP=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -Wno-unguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/DerivedData/Index/DataStore -iquote /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Hyperloop_Sample-generated-files.hmap -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Hyperloop_Sample-own-target-headers.hmap -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Hyperloop_Sample-all-target-headers.hmap -iquote /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Hyperloop_Sample-project-headers.hmap -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2 -Iheaders -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/CocoaAsyncSocket/CocoaAsyncSocket.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/CocoaSSDP/CocoaSSDP.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/GLCalendarView/GLCalendarView.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/JBChartView/JBChartView.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/MMMarkdown/MMMarkdown.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/Shimmer/Shimmer.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/src -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/DerivedSources/x86_64 -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/DerivedSources -Wno-arc-performSelector-leaks -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator -FFrameworks -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/CocoaAsyncSocket -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/CocoaSSDP -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/GLCalendarView -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/JBChartView -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/MMMarkdown -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/Shimmer -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/Pods/Localytics/Localytics-iOS-4.4.1 -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/src -DDEBUG -fobjc-arc -include /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/PrecompiledHeaders/SharedPrecompiledHeaders/16663412087756597020/Hyperloop_Sample_Prefix.pch -MMD -MT dependencies -MF /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/webkit.d --serialize-diagnostics /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/webkit.dia -c /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/hyperloop/ios/js/webkit/webkit.m -o /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/webkit.o
       [TRACE] :  
       [TRACE] :  CompileC /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/quartzcore.o /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/hyperloop/ios/js/quartzcore/quartzcore.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target: Hyperloop_Sample)
       [TRACE] :      cd /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone
       [TRACE] :      export LANG=en_US.US-ASCII
       [TRACE] :      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fmodules -gmodules -fmodules-cache-path=/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wno-parentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Dfoo=bar -DDEPLOYTYPE=development -DDEBUG=1 -DTI_VERSION=8.0.0 -DLAUNCHSCREEN_STORYBOARD=1 -DDEFAULT_BGCOLOR_RED=0.7803921568627451 -DDEFAULT_BGCOLOR_GREEN=0.09411764705882353 -DDEFAULT_BGCOLOR_BLUE=0.17254901960784313 -DTI_LOG_SERVER_PORT=45168 -DCOCOAPODS=1 -DHYPERLOOP=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -Wno-unguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/DerivedData/Index/DataStore -iquote /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Hyperloop_Sample-generated-files.hmap -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Hyperloop_Sample-own-target-headers.hmap -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Hyperloop_Sample-all-target-headers.hmap -iquote /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Hyperloop_Sample-project-headers.hmap -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/libxml2 -Iheaders -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/CocoaAsyncSocket/CocoaAsyncSocket.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/CocoaSSDP/CocoaSSDP.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/GLCalendarView/GLCalendarView.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/JBChartView/JBChartView.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/MMMarkdown/MMMarkdown.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/Shimmer/Shimmer.framework/Headers -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/src -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/DerivedSources/x86_64 -I/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/DerivedSources -Wno-arc-performSelector-leaks -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator -FFrameworks -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/CocoaAsyncSocket -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/CocoaSSDP -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/GLCalendarView -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/JBChartView -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/MMMarkdown -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Products/Debug-iphonesimulator/Shimmer -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/Pods/Localytics/Localytics-iOS-4.4.1 -F/Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/src -DDEBUG -fobjc-arc -include /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/PrecompiledHeaders/SharedPrecompiledHeaders/16663412087756597020/Hyperloop_Sample_Prefix.pch -MMD -MT dependencies -MF /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/quartzcore.d --serialize-diagnostics /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/quartzcore.dia -c /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/hyperloop/ios/js/quartzcore/quartzcore.m -o /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/quartzcore.o
       [TRACE] :  /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/hyperloop/ios/js/quartzcore/quartzcore.m:8:9: fatal error: 'TiBase.h' file not found
       [TRACE] :  #import "TiBase.h"
       [TRACE] :          ^~~~~~~~~~
       [TRACE] :  1 error generated.
       [ERROR] :  ** BUILD FAILED **
       [ERROR] :  The following build commands failed:
       [ERROR] :  	CompileC /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/iphone/build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/quartzcore.o /Users/myuser/Appcelerator_Studio_Workspace/hyperloop-examples-master/build/hyperloop/ios/js/quartzcore/quartzcore.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
       [ERROR] :  (1 failure)
       
  3. Gabriel S. 2019-04-02

    @rmitro did you have the chance to take a look into this again?
  4. Gabriel S. 2019-04-13

    @rmitro Instead of using version 1.6.1 of cocoapods, I downgraded it to v1.5.3 and -resources.sh was created. According to this issue on GitHub [https://github.com/CocoaPods/CocoaPods/issues/8677](https://github.com/CocoaPods/CocoaPods/issues/8677) , v1.6.1 does not create "-resources.sh". But the problem lies in the fact that when compiling an app with Hyperloop enabled, a .sh script tries to find the missing file. Thus, there is a bug when using Hyperloop and cocoapods whose version is 1.6.1 (and probably higher).
  5. Jan Vennemann 2019-04-23

    This is a valid issue when running with CocoaPods 1.6.0+ and was introduced with [this](https://github.com/CocoaPods/CocoaPods/pull/7957) PR. As a workaround using CocoaPods < 1.6.0 is recommended. Moving to TIMOB to address these changes and support CocoaPods 1.6.0+
  6. Jan Vennemann 2019-09-02

    PR: https://github.com/appcelerator/hyperloop.next/pull/326
  7. Lokesh Choudhary 2019-09-18

    Verified the fix with hyperloop module 4.0.4. Closing.

JSON Source