[TIMOB-24346] iOS: watchOS2 sample app compile fails with TiSDK 6.0 and Xcode 7
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-01-27T19:09:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | samples, watchos |
Reporter | Nikita Radaev |
Assignee | Hans Knöchel |
Created | 2017-01-25T19:10:09.000+0000 |
Updated | 2017-03-24T18:03:55.000+0000 |
Description
Simply trying to compile WatchOS2 sample app with TiSDK 6.0 throws following error:
{color:red}[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : CompileC build/Intermediates/WatchOS2.build/Debug-iphonesimulator/WatchOS2.build/Objects-normal/x86_64/MediaModule.o Classes/MediaModule.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] : (1 failure){color}
Tested with TiSDK 6.0 GA and 6.0.1 GA
I was not able to reproduce the error with 6.0.0.GA, 6.0.1.GA or the latest 6.0.2 app. The app was reported to occur when trying to run the [appc-sample-watchos2](https://github.com/appcelerator-developer-relations/appc-sample-watchos2) app, which built successfully for me. The error suggests a problem with the MediaModule.m, but that didn't seem to cause issues for me as well. *EDIT*: Looking at the trace logs you sent me, you're trying to run the SDK 6+ with Xcode 7. Please use Xcode 8 for SDK 6 and later, due to changes in the Xcode CLI we support in latest releases.
Thanks for the email-discussion Nikita. Resolving this ticket as
Invalid
, here are the things to check for people getting similar issues: - Ensure you have Xcode 8+ and Titanium SDK 5.5.0+ installed - Ensure you have the<team-id>
set in your tiapp.xml - Ensure the bundle identifier of your watchOS extension has the same name then the one from your app (Or use$(PRODUCT_BUNDLE_IDENTIFIER)
to ensure the same).Closing ticket as invalid with reference to the above comments.