我刚开始使用Appcelerator(钛金属手机)。我下载了Appcelerator工作室,然后我尝试启动一个示例项目" Movie"但我在下面得到了这个错误..
我为iPhone6设备运行,似乎UncrustifyPlugin不起作用,但没有想法我应该做什么。
[ERROR] : 2015-09-26 23:09:14.901 xcodebuild[49683:1449584] WARNING: Failed to load plugin at path: "/Users/yusaku/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin", skipping. Error: Error Domain=NSCocoaErrorDomain Code=3587 "The bundle “UncrustifyPlugin” couldn’t be loaded because it is damaged or missing necessary resources." (dlopen_preflight(/Users/yusaku/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/MacOS/UncrustifyPlugin): no suitable image found. Did find:
[ERROR] : /Users/yusaku/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/MacOS/UncrustifyPlugin: code signature invalid for '/Users/yusaku/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/MacOS/UncrustifyPlugin'
[ERROR] : ) UserInfo=0x7fa8ebbe0120 {NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/yusaku/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/MacOS/UncrustifyPlugin, NSDebugDescription=dlopen_preflight(/Users/yusaku/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/MacOS/UncrustifyPlugin): no suitable image found. Did find:
[ERROR] : /Users/yusaku/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/MacOS/UncrustifyPlugin: code signature invalid for '/Users/yusaku/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/MacOS/UncrustifyPlugin'
[ERROR] : , NSBundlePath=/Users/yusaku/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin, NSLocalizedDescription=The bundle “UncrustifyPlugin” couldn’t be loaded because it is damaged or missing necessary resources.}
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Movies.build/Debug-iphoneos/Movies-universal.build/Objects-normal/arm64/Movies normal arm64
[ERROR] : Ld build/Movies.build/Debug-iphoneos/Movies-universal.build/Objects-normal/armv7/Movies normal armv7
[ERROR] : (2 failures)
任何帮助将不胜感激。感谢。
UPDATE1
我删除了Plug-ins文件夹中的所有插件。
/Users/hoge/Library/Application Support/Developer/Shared/Xcode/Plug-ins
然后我又出现了另一个错误......
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Movies.build/Debug-iphoneos/Movies-universal.build/Objects-normal/armv7/Movies normal armv7
[ERROR] : (1 failure)
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/hoge/.appcelerator/install/5.0.2/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:810:12)
没有线索......
我的XCode是最新的。 XCode7,Appcelerator Studio,版本:4.3.0
UPDATE2
我找到了这个项目文件。
/Users/hoge/Documents/Appcelerator_Studio_Workspace/Movies/build/iphone/Movies.xcodeproj
我在XCode上启动时发生以下错误。
ld: '/Users/hoge/Documents/Appcelerator_Studio_Workspace/Movies/build/iphone/lib/libti_ios_profiler.a(TiProfilerDiscovery.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
UPDATE3
关闭bitcode然后在XCode上运行正常。我会试试Appcelerator。
UPDATE4
我认为Appcelerator 4.3.0与iOS9,XCode不兼容。我失去了2个小时......我怎么能提升它。
http://docs.appcelerator.com/platform/release-notes/?version=5.0.0.GA
update5
由于@miga,我安装了最新的SDK,但我的Appcelerator工作室仍然是版本4.3。为什么...!?
现在我注意到了这条消息&#34;已经安装了版本5.0.2。&#34;那是什么?
实际上仍然不确定这个问题&#34;您是否计划开发Titanium应用程序?&#34;
$ appc setup
Finding latest version ...5.0.2 ✓
Version 5.0.2 already installed.
? Do you plan on developing Titanium apps? Yes
Checking your environment...
A new version of the Titanium SDK is available, will download it...
New version available! 5.0.1.GA
Downloading http://builds.appcelerator.com/mobile-releases/5.0.1/mobilesdk-5.0.1.GA-osx.zip
100% [========================================] 0.5s
Extracting SDK to /Users/hoge/Library/Application Support/Titanium
100% [========================================] 0.0s
Setting Titanium SDK 5.0.1.GA as the default.
Titanium SDK 5.0.1.GA successfully installed!
Congrats! No issues detected for developing cross-platform mobile apps!
appc setup complete!
update6 final
我改变了tiapp.xml
这
<sdk-version>3.5.1.RC</sdk-version>
到
<sdk-version>5.0.1.GA</sdk-version>
然后我终于可以在我的iPhone设备中安装该应用程序了!
我想我已经从5.0.1.GA更改为5.0.2作为默认值。但5.0.2必须优于5.0.1.GA. 如何更改?
当我设置5.0.2时,我被拒绝了......
<sdk-version>5.0.2</sdk-version>
我想我不需要安装5.0.1.GA.我只需要更改tiapp.xml。我浪费了4个小时的时间..