[TIMOB-19379] iOS: Cannot build for devices/Package with Xcode 7; CompileC error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-08-19T23:25:37.000+0000 |
Affected Version/s | Release 5.0.0 |
Fix Version/s | Release 5.0.0 |
Components | iOS |
Labels | qe-5.0.0 |
Reporter | Eric Wieber |
Assignee | Chee Kiat Ng |
Created | 2015-08-19T20:56:36.000+0000 |
Updated | 2015-10-23T17:39:15.000+0000 |
Description
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:
[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.<anonymous> (/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 ] }
*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.
Full output:
PR here: https://github.com/appcelerator/titanium_mobile/pull/7051
APPROVED. PR merged.
Verified fixed, using: MacOS 10.11 (15A263e) Studio 5.0.0.201508181557 Ti SDK 5.0.0.v20150821030422 Appc NPM 4.2.0-1 Appc CLI 5.0.0-12 Ti CLI 4.1.5 Alloy 1.7.5 Node v0.10.37 Java 1.7.0_45 preproduction Xcode 7.0 (7A176x) Can successfully build to device and package for adhoc/App Store.