2016-08-11 3 views
0

Heute habe ich auf SDK 5.4.0 innerhalb Appcelerator Studio aktualisiert.SDK 5.4.0.GA schlägt fehl iOS-Anwendung zu erstellen

Ich habe die tiapp.xml geändert, 5.4.0 mit diesem Projekt zu verwenden.

Er scheiterte mit dem folgenden Fehler

[TRACE] : CompileC build/Intermediates/REL.build/Debug-iphoneos/REL.build/Objects-normal/armv7/TiUITextWidget.o Classes/TiUITextWidget.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
[TRACE] :  cd /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone 
[TRACE] :  export LANG=en_US.US-ASCII 
[TRACE] :  export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin:/Users/chris/.nvm/versions/node/v0.12.7/bin:/usr/local/git/bin:/Users/chris/opt/ant/bin:/Applications/usr/sdk/Android/tools:/Applications/usr/sdk/Android/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin" 
[TRACE] :  /Applications/Xcode.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 -fmodules-cache-path=/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -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-receiver-is-weak -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.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.1 -iquote /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/REL.build/Debug-iphoneos/REL.build/REL-generated-files.hmap -I/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/REL.build/Debug-iphoneos/REL.build/REL-own-target-headers.hmap -I/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/REL.build/Debug-iphoneos/REL.build/REL-all-target-headers.hmap -iquote /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/REL.build/Debug-iphoneos/REL.build/REL-project-headers.hmap -I/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/libxml2 -Iheaders -I/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/REL.build/Debug-iphoneos/REL.build/DerivedSources/armv7 -I/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/REL.build/Debug-iphoneos/REL.build/DerivedSources -F/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Products/Debug-iphoneos -F/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/../../modules/iphone/au.com.mobilogica.wfios/1.0.1/platform -DDEBUG -include /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/PrecompiledHeaders/REL_Prefix-fnpnudzjjmqgaablsyfodhzdkqxp/REL_Prefix.pch -MMD -MT dependencies -MF /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/REL.build/Debug-iphoneos/REL.build/Objects-normal/armv7/TiUITextWidget.d --serialize-diagnostics /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/REL.build/Debug-iphoneos/REL.build/Objects-normal/armv7/TiUITextWidget.dia -c /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/Classes/TiUITextWidget.m -o /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/build/Intermediates/REL.build/Debug-iphoneos/REL.build/Objects-normal/armv7/TiUITextWidget.o 
[TRACE] : In file included from /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/Classes/TiUITextWidget.m:14: 
[TRACE] : /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/Classes/TiApp.h:69:5: error: unknown type name 'UIApplicationShortcutItem'; did you mean 'UIApplicationState'? 
[TRACE] :  UIApplicationShortcutItem *launchedShortcutItem; 
[TRACE] :  ^~~~~~~~~~~~~~~~~~~~~~~~~ 
[TRACE] :  UIApplicationState 
[TRACE] : In module 'UIKit' imported from /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/Classes/TiBase.h:10: 
[TRACE] : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:81:28: note: 'UIApplicationState' declared here 
[TRACE] : typedef NS_ENUM(NSInteger, UIApplicationState) { 
[TRACE] :       ^
[TRACE] : In module 'Foundation' imported from /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/iphone/Classes/TiEvaluator.h:9: 
[TRACE] : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:268:46: note: expanded from macro 'NS_ENUM' 
[TRACE] : #define NS_ENUM(_type, _name) CF_ENUM(_type, _name) 
[TRACE] :            ^
[TRACE] : In module 'CoreFoundation' imported from headers/JavaScriptCore/WebKitAvailability.h:53: 
[TRACE] : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:171:50: note: expanded from macro 'CF_ENUM' 
[TRACE] : #define CF_ENUM(_type, _name) enum _name : _type _name; enum _name : _type 
[TRACE] :             ^
[TRACE] : 1 error generated. 
[ERROR] : ** BUILD FAILED ** 
[ERROR] : The following build commands failed: 
[ERROR] : CompileC build/Intermediates/REL.build/Debug-iphoneos/REL.build/Objects-normal/armv7/TiUITextWidget.o Classes/TiUITextWidget.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
[ERROR] : (1 failure) 

ich wieder zu einem frühen Build zu bauen, in der Tat habe ich versucht,

  • 5.2.1.GA
  • 5.3.0.GA
  • 5.3.1.GA

Diese alle w Orked und baute die App und es lief wie erwartet.

Ich überprüfte die TiApp.h erwähnt und sah den Verweis auf den Typ, der ein Apple definierten Typ von UIKit ist. Ich fand, dass alle aufgeführten Versionen auch einen Verweis auf UIApplicationShortcutItem hatten.

Ich frage mich, ob jemand ein ähnliches Problem gefunden hat und ob sie eine Lösung gefunden haben.

System:

  • Mac OSX 10.10.5
  • XCode 6.1
  • Appcelerator CLI 5.4.0
  • Appcelerator SDK 5.3.1
+0

Versuchen Sie, Ihr Projekt zu säubern und erneut zu kompilieren. In Titanium Studio -> Projekt -> Reinigen ... – developer82

+0

Hat das zwischen jedem Build. – Rob

Antwort

0

Bitte aktualisieren Sie Xcode 7.3. 1, es ist eine iOS 9 API, die Xcode 7 oder höher benötigt. Vielen Dank!

+0

Entsprechend der Appcelerator Compatability Matrix 5.4.0 kann mit XCode 6.0.x bis 7.x verwendet werden. Es scheint mir, dass es ein #ifdef oder etwas ähnliches im Code fehlt. Im Moment kann ich nicht zu 7.3.1 gehen, da wir 10.10 und nicht 10.11 von OSX verwenden. Im Grunde ist dies Appcelerator Generated-Code, der anscheinend unterbrochen ist. – Rob

+0

Wir haben das Wiki nicht vor GA aktualisiert, sorry dafür. Da die iOS9-APIs alle über die Version 5.4.0 verteilt sind, wurde das manuelle Umhüllen von Daten als vermieden betrachtet. Da wir die Empfehlungen von Apple für neue Software befolgen, war dies eine Entscheidung für das Produktmanagement. –

+0

Hoffentlich wird das Wiki bald aktualisiert, damit andere nicht hier feststecken. Oder vielleicht sollte das Upgrade auf 5.4.0.GA nicht auf Systemen angeboten werden, die es nicht unterstützen. – Rob

Verwandte Themen