ios - 提交 App Store 时 Xcode 8 崩溃

标签 ios xcode swift3 xcode8

我遇到了一个以前从未发生过的奇怪问题。当我尝试将我的 Xcode8 (Swift3) 项目提交到 AppStore 时,在我选择并确认组织后,Xcode 崩溃并出现奇怪的问题报告:

2016-09-17 12:32:29.604 xcodebuild[4347:14903] [MT] IDEDistribution: - [IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at   path '/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/Degoo-iOS_2016-09- 17_12-32-29.600.xcdistributionlogs'.
2016-09-17 12:32:31.335 xcodebuild[4347:14903] [MT] DVTAssertions:   ASSERTION FAILURE in  /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks- 11246/IDEFoundation/Distribution/IDEDistributionSummaryStep.m:213
Details:  A method claimed to have succeeded but provided an error!
Object:   <IDEDistributionSummaryStep>
Method:   +_distributionItemsWithoutBitcodeForPlatforms:flattenedDistributionItems:ar chive:withError:
Thread:   <NSThread: 0x7ff94ac07fe0>{number = 1, name = main}
Hints: None
Backtrace:
0   -[DVTAssertionHandler   handleFailureInMethod:object:fileName:lineNumber:assertionSignature:message Format:arguments:] (in DVTFoundation) 
1   _DVTAssertionHandler (in DVTFoundation)
2   _DVTAssertionFailureHandler (in DVTFoundation)
3   +[IDEDistributionSummaryStep _distributionItemsWithoutBitcodeForPlatforms:flattenedDistributionItems:archive:withError:] (in IDEFoundation)
4   -[IDEDistributionSummaryStep distributionItemsWithoutBitcodeForPlatforms:withError:] (in IDEFoundation)
5   -[IDEDistributionSummaryStep loadFromPropertyList:error:] (in IDEFoundation)
6   -[IDEDistributionDriver runWithDestinationPath:error:] (in IDEFoundation)
7   -[Xcode3CommandLineBuildTool _distributeArchiveAndExit] (in Xcode3Core)
8   -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
9  0x00000001047bb202 (in xcodebuild)
10   start (in libdyld.dylib)

我也尝试过使用 bitrise 上传应用程序,但我也失败了,但至少我知道了更多。在上面的崩溃日志之前的 xcodebuild 回溯下方:

** ARCHIVE SUCCEEDED **


Generating exportOptionsPlist...
Using plist 3.1.0
Using bundler 1.13.1
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

Configs:
  * export_options_path: /Users/vagrant/deploy/export_options.plist
  * archive_path:  /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise- xcarchive.akKFUHmn/MyApp-iOS.xcarchive
  * export_method: app-store
  * upload_bitcode: yes
  * compile_bitcode: yes
  * team_id: 
  * plist_content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"  "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>method</key>
  <string>app-store</string>
  <key>uploadBitcode</key>
  <true/>
</dict>
</plist>

Exporting IPA from generated Archive...
$ xcodebuild -exportArchive -archivePath  "/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise-  xcarchive.akKFUHmn/MyApp-iOS.xcarchive" -exportPath "/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise-xcarchive.Jj61X7yX" -exportOptionsPlist "/Users/vagrant/deploy/export_options.plist"

最佳答案

我在这个问题上花了几个小时,没有任何线索。 我决定从一个空白项目重新开始,向后移植我的所有文件(项目文件除外)+重做配置。 我花了 2 个小时,但问题现在已经解决了。

关于ios - 提交 App Store 时 Xcode 8 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39551073/

相关文章:

objective-c - 如何配置 Xcode 以将 '{' 放在生成文件中我想要的位置

xcode - Apple Mach-O 链接器 (id) 错误 _NSVariableStatus 项目长度

ios - 前置摄像头无法添加输入,从后到前切换摄像头?

swift - 快速使用数组从 FMDB 中删除数据

swift3 - Swift 3 NSFileManager Xcode 8 错误 : Has been renamed FileManager

ios - 无法为 armv6 构建 RestKit

android - 电晕 SDK : add velocity to non physics objects

ios - 为什么这个 UIScrollView 的行为不正常?

ios - 用户登录后动态更改登录选项卡和我的个人资料选项卡

ios - 平移图像背后的黑色背景。 swift 3