Project: titanium
Issue TIMOB-19379: iOS: Cannot build for devices/Package with Xcode 7; CompileC error
When using Xcode 7b5 with the 5.0 stack, I am unable to build for iOS devices or package the app. I get the below error: {code} [TRACE] /Applications/Xcode/7.0/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fmodules -gmodules -fmodules-cache-path=/Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/ModuleCache/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 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -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 -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEPLOYTYPE=test -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode/7.0/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=7.1 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/testapp-generated-files.hmap -I/Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/testapp-own-target-headers.hmap -I/Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/testapp-all-target-headers.hmap -iquote /Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/testapp-project-headers.hmap -I/Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Products/Debug-iphoneos/include -I/Applications/Xcode/7.0/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/libxml2 -Iheaders -I/Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/DerivedSources/armv7 -I/Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/DerivedSources -F/Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Products/Debug-iphoneos -DDEBUG -include /Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/PrecompiledHeaders/testapp_Prefix-bjxphywhfqcjvogkqiffjlrivtva/testapp_Prefix.pch -MMD -MT dependencies -MF /Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/Objects-normal/armv7/KrollMethod.d --serialize-diagnostics /Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/Objects-normal/armv7/KrollMethod.dia -c /Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Classes/KrollMethod.m -o /Users/ewieber/Documents/Appcelerator_Studio_Workspace/testapp/build/iphone/Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/Objects-normal/armv7/KrollMethod.o [ERROR] ** BUILD FAILED ** [ERROR] The following build commands failed: [ERROR] CompileC Build/Intermediates/testapp.build/Debug-iphoneos/testapp.build/Objects-normal/armv7/TiAppiOSSearchableItemProxy.o Classes/TiAppiOSSearchableItemProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler [ERROR] (1 failure) TRACE | titanium exited with exit code 1 ERROR | Error: ti run exited with error code 1 at ChildProcess. (/Users/ewieber/.appcelerator/install/5.0.0-3/package/node_modules/appc-cli-titanium/plugins/run.js:89:66) at ChildProcess.emit (events.js:117:20) at Process.ChildProcess._handle.onexit (child_process.js:820:12) appc:run signal received +43s exit sending to { domain: null, _events: { close: [Function] }, _maxListeners: 10, _closesNeeded: 1, _closesGot: 1, connected: false, signalCode: null, exitCode: 1, killed: false, _handle: null, pid: 79660, stdin: null, stdout: null, stderr: null, stdio: [ null, null, null ] } {code} *Steps to reproduce issue*: 1. Create a new project with the 5.0 stack 2. Run the app on an iOS device ({{appc run -p ios -T device}}) *Actual Results* I get the above error and cannot build *Expected Results* I am able to build without error *Notes*: The same environment, but using Xcode 6.4 successfully builds. Using {{appc ti build}} and {{ti build}} results in the same error.
Story points: 1