2016-08-11 5 views
0

今日、Appcelerator StudioのSDK 5.4.0にアップグレードしました。SDK 5.4.0.GAがiOSアプリケーションの作成に失敗する

このプロジェクトではtiapp.xmlを5.4.0に変更しました。

は、それは私が

  • 5.2.1.GA
  • 5.3.0.GAを試してみました実際には、私が以前のビルドに戻す

    [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) 
    

    次のエラーでビルドに失敗しました。

  • 5.3.1.GA

これらはすべてorkedとアプリを構築し、それは期待どおりに走った。

上記のTiApp.hを確認し、UIKitのApple定義の型である型への参照を確認しました。私は、リストされたこれらのすべてのバージョンにもUIApplicationShortcutItemへの参照があることを発見しました。

誰もが同様の問題を発見したかどうか、解決策を見つけたのかどうか疑問に思っていました。

システム:

  • マックOSX 10.10.5
  • XCodeの6.1
  • AppceleratorのCLI 5.4.0
  • AppceleratorのSDK 5.3.1
+0

プロジェクトをクリーニングしてもう一度コンパイルしてみてください。チタンスタジオで - >プロジェクト - >クリーン... – developer82

+0

各ビルドの間にそれをしました。 – Rob

答えて

0

7.3へのXcodeをアップグレードしてください。 1の場合、Xcode 7以降が必要なiOS 9 APIです。ありがとう!

+0

Appcelerator Compatibility Matrix 5.4.0によると、XCode 6.0.xから7.xまで使用できます。 #ifdefなどのコードが紛れているようです。 OSXの10.11ではなく、10.10を使用しているので、私は7.3.1に移動できません。 基本的に、Appcelerator Generatedコードが壊れているようです。 – Rob

+0

GAの前にwikiを更新しませんでした。申し訳ありません。 iOS9-APIはすべて5.4.0リリースに含まれているため、手動ですべてをラップするのは避けられると考えられていました。アップルの新しいソフトウェアの推奨事項に従うので、これは製品管理の決定でした。 –

+0

うまくいけば、wikiはすぐに現実に更新されるはずなので、他の人たちがここで立ち往生しないようにしてください。 5.4.0.GAへのアップグレードは、サポートしていないシステムでは提供しないでください。 – Rob

関連する問題