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.
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.
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:
@rmitro did you have the chance to take a look into this again?
@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).
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+
PR: https://github.com/appcelerator/hyperloop.next/pull/326
Verified the fix with hyperloop module 4.0.4. Closing.