2014-05-21 216 views
0

昨天我的ios構建開始失敗,但我什麼也沒做,我嘗試去簽出以前的修訂版,因爲我認爲代碼已被破壞但沒有。我的構建失敗,出現以下輸出:在Jenkins IOS構建失敗

10:24:20 Code sign error: Failed to locate ResourceRules.plist in '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ResourceRules.plist' or '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/ResourceRules.plist' 
10:24:20 [BEROR]error: There is no SDK with the name or path '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk' 
10:24:20 [BEROR]CodeSign error: entitlements are required for product type 'Application' in SDK 'iPhoneOS 7.0'. Your Xcode installation may be damaged. 
10:24:20 
10:24:20 ** CLEAN FAILED ** 
10:24:20 
10:24:20 
10:24:20 The following build commands failed: 
10:24:20 Check dependencies 
10:24:20 (1 failure) 
10:24:20 === BUILD TARGET fpg OF PROJECT fpg WITH CONFIGURATION Debug === 
10:24:20 
10:24:20 Check dependencies 
10:24:20 Code sign error: Failed to locate ResourceRules.plist in '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ResourceRules.plist' or '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/ResourceRules.plist' 
10:24:20 error: There is no SDK with the name or path '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk' 
10:24:20 CodeSign error: entitlements are required for product type 'Application' in SDK 'iPhoneOS 7.0'. Your Xcode installation may be damaged. 
10:24:20 
10:24:20 ** BUILD FAILED ** 
10:24:20 The following build commands failed: 
10:24:20 Check dependencies 
10:24:20 (1 failure) 

回答

1

您是否嘗試檢查您的Xcode安裝的SDK?

xcodebuild -showsdks 

您也可以嘗試在xcodebuild -list當前項目檢查您的構建配置。