2012-01-30 83 views
0

有助於解決問題!在iphone上運行應用程序崩潰

我: --mac OS X 10.7.2 --Titanium工作室,打造:1.0.7.201112281340 --Xcode,版本4.2.1,構建4D502 --iPhone 5.0.1 IOS - 應用程序我試圖寫

當我嘗試在iPhone設備上運行應用程序時,出現錯誤。

海爾是控制檯登錄

[TRACE] app property, ti.android.runtime : rhino 
[DEBUG] Detecting modules in /Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/modules 
[DEBUG] Detecting modules in /Users/<USER>/Library/Application Support/Titanium/modules 
[INFO] Performing clean build 
[ERROR] 
[ERROR] Error: Traceback (most recent call last): 
    File "/Users/<USER>/Library/Application  Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1418, in main 
execute_xcode("iphoneos%s" % iphone_version,args,False) 
    File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode 
output = run.run(args,False,False,o) 
    File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run 
sys.exit(rc) 
SystemExit: 65 

在/用戶//文件/鈦工作室工作區/ sinoptic /編譯/ iphone /建設/ build.log我有:

CodeSign build/Debug-iphoneos/ZeusLight.app 
cd "/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone" 
setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate 
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/usr/bin/codesign --force --sign "iPhone Developer: <CERTIFICATE HIER>" "--resource-rules=/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/Debug-iphoneos/ZeusLight.app/ResourceRules.plist" --entitlements "/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/ZeusLight.build/Debug-iphoneos/ZeusLight-universal.build/ZeusLight.xcent" "/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/Debug-iphoneos/ZeusLight.app" 
/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/Debug-iphoneos/ZeusLight.app: object file format unrecognized, invalid, or unsuitable 
Command /usr/bin/codesign failed with exit code 1 

** BUILD FAILED ** 

The following build commands failed: 
CodeSign build/Debug-iphoneos/ZeusLight.app 
(1 failure) 
EXIT CODE WAS: 65 

Exception detected in script: 
Traceback (most recent call last): 
    File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1418, in main 
execute_xcode("iphoneos%s" % iphone_version,args,False) 
    File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode 
output = run.run(args,False,False,o) 
    File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run 
sys.exit(rc) 
SystemExit: 65 

運行在模擬器 - 沒有錯誤,一切都很好。 原因?這真讓我抓狂!

Regards ...

回答

0

嘗試刪除應用程序源目錄中的「build」文件夾。然後再次構建設備。