Xcode 8.3 fails to produce Archive builds for my app.

After updating to Xcode 8.3, my project can no longer create an Archive build. My iOS app is all Swift, and it uses my Swift framework that has targets for iOS, tvOS and macOS. Only the iOS framework gets embedded in this app, of course.


This was all building and archiving fine on Xcode 8.2.x. And even on 8.3, I can still build for Simulator and Device just fine. It's just Archive that's screwed up.


The errors are very cryptic and unhelpful. They appear to complain about a file not found, but it's an intermediate file rather than my own source files.


I've tried all the usual tricks like doing a Clean Build Folder, deleting Derived Data, setting Code Optimation to "none," and turning Bit Code on and off. I've also compared settings to a fresh project.


And I've even tried to Archive my framework project by itself, which fails with the the same errors:


Showing All Errors Only
Build target STool iOS of project STool with configuration Release
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
    cd "/Users/Scenario/Documents/Projects/Scenario/STool"
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name STool -O -whole-module-optimization -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -target arm64-apple-ios10.0 -g -module-cache-path /Users/Scenario/Library/Developer/Xcode/DerivedData/ModuleCache -Xfrontend -serialize-debugging-options -embed-bitcode -I /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -F /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -c -num-threads 8 /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBaseCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBaseTableViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBaseWebViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SDetailTableViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SFixedImageTableViewCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SListTableViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBinder.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SDateField.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SDateFieldCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SExtensions.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SIteratorControl.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SImageView.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SLabel.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SActionCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBigButton.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SLabelCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SNumberedCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SPersistentContainer.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSearchField.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SPickerCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SPickerViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseFRCTableViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseFRCHybridViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SProgressView.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSlider.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSliderCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SStepper.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SStepperCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSwitch.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STopAlignedCollectionViewFlowLayout.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBaseURLSession.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSwitchCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SScopeButton.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SCollectionViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STextField.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STextFieldCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STextView.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STextViewCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STool.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SView.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STitledImageCollectionViewCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SUniversal.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseFRCCollectionViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseFRCViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SPlayerItem.swift -output-file-map /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool\ iOS-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool.swiftmodule -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/STool-generated-files.hmap -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/STool-own-target-headers.hmap -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/STool-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/STool-project-headers.hmap -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos/include -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/DerivedSources/arm64 -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/DerivedSources -emit-objc-header -emit-objc-header-path /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool-Swift.h -import-underlying-module -Xcc -ivfsoverlay -Xcc /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/unextended-module-overlay.yaml -Xcc -working-directory/Users/Scenario/Documents/Projects/Scenario/STool
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler
    cd "/Users/Scenario/Documents/Projects/Scenario/STool"
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name STool -O -whole-module-optimization -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -target armv7-apple-ios10.0 -g -module-cache-path /Users/Scenario/Library/Developer/Xcode/DerivedData/ModuleCache -Xfrontend -serialize-debugging-options -embed-bitcode -I /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -F /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -c -num-threads 8 /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBaseCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBaseTableViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBaseWebViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SDetailTableViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SFixedImageTableViewCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SListTableViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBinder.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SDateField.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SDateFieldCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SExtensions.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SIteratorControl.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SImageView.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SLabel.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SActionCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBigButton.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SLabelCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SNumberedCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SPersistentContainer.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSearchField.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SPickerCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SPickerViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseFRCTableViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseFRCHybridViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SProgressView.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSlider.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSliderCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SStepper.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SStepperCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSwitch.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STopAlignedCollectionViewFlowLayout.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SBaseURLSession.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SSwitchCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SScopeButton.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SCollectionViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STextField.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STextFieldCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STextView.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STextViewCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STool.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SView.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/STitledImageCollectionViewCell.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SUniversal.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseFRCCollectionViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/SBaseFRCViewController.swift /Users/Scenario/Documents/Projects/Scenario/STool/STool/SPlayerItem.swift -output-file-map /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool\ iOS-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool.swiftmodule -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/STool-generated-files.hmap -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/STool-own-target-headers.hmap -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/STool-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/STool-project-headers.hmap -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos/include -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/DerivedSources/armv7 -Xcc -I/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/DerivedSources -emit-objc-header -emit-objc-header-path /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool-Swift.h -import-underlying-module -Xcc -ivfsoverlay -Xcc /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/unextended-module-overlay.yaml -Xcc -working-directory/Users/Scenario/Documents/Projects/Scenario/STool
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
Ld /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool normal arm64
    cd "/Users/Scenario/Documents/Projects/Scenario/STool"
    export IPHONEOS_DEPLOYMENT_TARGET=10.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -L/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -F/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -filelist /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool.LinkFileList -install_name @rpath/STool.framework/STool -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -miphoneos-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool.swiftmodule -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool_dependency_info.dat -o /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool
ld: file not found: /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool iOS.build/Objects-normal/arm64/SBaseCell.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ld /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool normal armv7
    cd "/Users/Scenario/Documents/Projects/Scenario/STool"
    export IPHONEOS_DEPLOYMENT_TARGET=10.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -L/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -F/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -filelist /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool.LinkFileList -install_name @rpath/STool.framework/STool -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -miphoneos-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool.swiftmodule -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool_dependency_info.dat -o /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool
ld: file not found: /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool iOS.build/Objects-normal/armv7/SBaseCell.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
CreateUniversalBinary /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/STool.framework/STool normal armv7\ arm64
    cd "/Users/Scenario/Documents/Projects/Scenario/STool"
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -create /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/armv7/STool /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool\ iOS.build/Objects-normal/arm64/STool -output /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/STool.framework/STool
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool iOS/IntermediateBuildFilesPath/STool.build/Release-iphoneos/STool iOS.build/Objects-normal/armv7/STool (No such file or directory)
GenerateDSYMFile /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos/STool.framework.dSYM /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/STool.framework/STool
    cd "/Users/Scenario/Documents/Projects/Scenario/STool"
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/STool.framework/STool -o /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/BuildProductsPath/Release-iphoneos/STool.framework.dSYM
error: cannot parse the debug map for "/Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/STool.framework/STool": No such file or directory
Strip /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/STool.framework/STool
    cd "/Users/Scenario/Documents/Projects/Scenario/STool"
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -S /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool\ iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/STool.framework/STool
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: /Users/Scenario/Library/Developer/Xcode/DerivedData/STool-fknjmbbirndezqbnqibqncpthxlw/Build/Intermediates/ArchiveIntermediates/STool iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/STool.framework/STool (No such file or directory)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip failed with exit code 1
Build failed    4/3/17, 9:31 PM


The only "file not found" error references one called SBaseCell.o. There's nothing special about that file except that it happens to be the first one in my target's Compile Sources list.


Any clue what's going on here?

Accepted Reply

The bug is now fixed in Xcode 8.3.2.

Replies

My "solution" was to downgrade to Xcode 8.2.1 and restore my iPhone 6 to 10.2.1. Now I can Archive and Run just fine again.


I'm of the firm belief that updating a tool to a dot-release should not be breaking important functionality. You know, like the ability to upload your app.

>> The errors are very cryptic and unhelpful. They appear to complain about a file not found […]


That was the second, and presumably secondary, error. The first error is in line 9:


Command […]/swiftc failed with exit code 1


Apparently, SBaseCell.o doesn't exist because SBaseCell.swift was never compiled successfully. It's not clear what went wrong here. The compiler apparently didn't crash, but it also didn't produce a syntax error message, so (I would guess) it failed some internal check and quit early. There might even be a message in the system log. Anyway, it sounds like a bug in the Swift compiler.


You could try stubbing out as much of SBaseCell.swift as possible, and see if you can get past the compilation step. If so, you probably have a syntax construct that the compiler can't handle, and a small rewrite of the relevant code might let you work around the problem.


In any case, getting the problem into a form that you can submit as a bug report would be a philanthropic gesture for the rest of the developer world.

The bug is now fixed in Xcode 8.3.2.

Good info, thanks for trhe followup. Looks like 8.3 is banned for store use too.


Ken

It is still not working in Xcode 8.3.2

Getting same error 8.3.3. Can we get some help here???