Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24346] iOS: watchOS2 sample app compile fails with TiSDK 6.0 and Xcode 7

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2017-01-27T19:09:03.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelssamples, watchos
ReporterNikita Radaev
AssigneeHans Knöchel
Created2017-01-25T19:10:09.000+0000
Updated2017-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

Comments

  1. Hans Knöchel 2017-01-25

    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.
  2. Hans Knöchel 2017-01-27

    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).
  3. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source