1. 程式人生 > >解決ios指令碼打包報IDEDistributionErrorDomain Code=14錯

解決ios指令碼打包報IDEDistributionErrorDomain Code=14錯

最近遊戲接入SDK之後,使用之前的指令碼生成ipa報錯,用xcode手動Archive再Export卻可以。報錯資訊如下

** ARCHIVE SUCCEEDED **

2017-01-05 14:09:45.534 xcodebuild[53098:5148140] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/gy/ql0crk9d28n9hxmp88jbh5fh0000gn/T/xxxx_xx_2017-01-05_14-09-45.533.xcdistributionlogs'.

1.2.840.113635.100.1.61

2017-01-05 14:10:07.489 xcodebuild[53098:5148140] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7f913582dcf0>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}

error: exportArchive: No applicable devices found.

Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}

** EXPORT FAILED **

之後將百度和谷歌到的能嘗試的方法都嘗試了一遍,依然沒有解決!

看上訴的日誌,xcode有生成日誌_createLoggingBundleAtPath,打開了日誌目錄,在IDEDistribution.standard.log檔案中發現了一個Error

2017-01-05 12:51:47 +0000  error: Info.plist of “xxxx_xx.app/XQTNowPayResource.bundle” specifies a non-existent file for the CFBundleExecutable key

找到該Info.plist檔案,將報錯的選項刪除,重新打包成功!