tidev / hyperloop-examples

Native Hyperloop examples in Titanium.
https://titaniumsdk.com/guide/Titanium_SDK/Titanium_SDK_Guide/Hyperloop/
79 stars 49 forks source link

Error with CocoaPods dependencies #35

Closed rpiwetz closed 8 years ago

rpiwetz commented 8 years ago

After downloading the hyperloop-examples files, and running appc ti build -p ios, I get errors when Hyperloop finds the CocoaPods dependencies. The exact error text is:

[ERROR] An error occurred during build after 3s 372ms [ERROR] pod install returned a non-zero exit code

The only change I had to make was to set sdk-version in tiapp.xml to 6.0.0.v20160608083848 instead of 5.4.0 (pulled this version of the SDK by running appc ti sdk install -b master)

appc -v returns 5.2.2 appc ti -v returns 5.0.6

Also, if I remove the Podfile file, the app builds and runs on the simulator. Most of the samples work (obviously not the Third-Party Libraries one). I see in some of the other issues where people were able to get the cocoapod dependencies working, so this may just be a cocoapod issue with my machine. pod --version returns 1.0.1

pod install provides the error:

Could not automatically select an Xcode project. Specify one in your Podfile like so:

rpiwetz commented 8 years ago

I also tried using a version of SDK 5.4.0 (5.4.0.v20160608165242) but receive the same error. I had a co-worker install hyperloop and it is failing at the same place, with the same error.

rpiwetz commented 8 years ago

So, it was a cocoapods issue as I suspected. Uninstalling version 1.0.1 of cocoapods and installing version 0.39.0 resolved this issue.