Mixed results from
How to make a simp
Hemoglobin content
Growth and structu
The goal of this r
Amid all the talk
Sickle cell diseas
FORT WORTH — What
Q: How to compare
/** * @file oalp

The University of
This is an archive
Q: Why does one n
In the past year,
"And let's hear th
The present invent
Orofacial and soma
What if our world
/* Bullet Continu
/* * Copyright (
Q: Xcode: Build Failed on Archive What I am trying to archive is a build that works fine on device and simulator. My Xcode log is: >=== BUILD TARGET CoreDataPersistence OF PROJECT CoreDataPersistenceWithLiveTemperature > WITH CONFIGURATION Debug === Check dependencies warning: no rule to process file 'libsqlite3.tbd' of type architecture armv7 for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) ... lots more of that /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -info /Users/Nataliia/Library/Developer/Xcode/DerivedData/CoreDataPersistence-euvqjzvhwlphuohksmzldtcmgqgk/Build/Products/Debug-iphonesimulator/libsqlite3.tbd -o /Users/Nataliia/Library/Developer/Xcode/DerivedData/CoreDataPersistence-euvqjzvhwlphuohksmzldtcmgqgk/Build/Products/Debug-iphonesimulator/libsqlite3.tbd Apple LLVM version 7.0.0 (clang-700.0.72) Target: x86_64-apple-darwin13.3.0 Thread model: posix /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld: warning: directory not found for option '-F"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks"'"' note: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks exists note: using user supplied custom toolchain path: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain clang: error: cannot specify -o when generating multiple output files Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254 A: The compiler toolchain error that you get is basically telling you that Xcode doesn't have the right version of the compiler installed. You're doing a "build archive", so that can only work if the compiler is installed on the host machine, not in the simulator. If you click the little blue arrow next to the word "Compile Sources" it will tell you which compile command Xcode is trying to use. I expect that its something like gcc -mmacosx-version-min=10.6 -arch armv7 -arch armv7s -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -lz -o app/build/Build/Products/Debug-iphonesimulator/libapp.a -ObjC libapp.a -F/Users/Nataliia/Library/Developer/Xcode/DerivedData/CoreDataPersistence-euvqjzvhwlphuohksmzldtcmgqgk/Build/Products/Debug-iphonesimulator My guess is that it is trying to compile your iOS project on your host machine and trying to create the archive from that. You can get around this by creating the archive from Xcode (the archive tab of the build settings). This will allow Xcode to package up all the files and write a binary, which is what you want. I suggest that you try reverting to the default toolchain. As long as your version of the compiler is the same as the host OS (i.e. Mac OS X) then that should do the trick. You can probably get away with using the default toolchain as long as the iOS stuff is turned off, although you should definitely check to see if your compilation settings have changed. A: Make sure that your simulator architecture is the same as the architecture in the project. I had it set to simulator (armv7, armv7s, and arm64) when my project was set for deployment target of iPhone 5.0. A: This is quite frustrating and misleading. Xcode 8.1 has no way to check for this, yet is a must-have on any iOS project. The problem is that Xcode 8.1 generates a build archive to put on TestFlight. In the build setting of "iOS App Target" > "Build Setting > Archive" > "Archive without validation" and add any valid value. This allows you to create a build archive and Xcode 8.1 will check if it is correct. You can also archive on Xcode 8.1 and then transfer this archive to the application to your mac and then Xcode 8.1 won't allow you to archive if the archive is not OK. A: I found the solution is deleting all the references in the project to the libraries that I need (the ones that has no problem with the archive) and rebuild the project. Go to Build Settings: In the Linking section in the "Other Linker Flags", add the libraries that can not be build (that cause the error Xcode shows). Go to Build Phases and delete them. Go to Build Settings: Add all the libraries that have problems building in the "Other Linker Flags" section and also add in this section a valid value for the "Library Search Path" for each of them. And you are done. Xcode will build your project successfully. I hope this will help somebody PS: I found this solution from this link https://forums.developer.apple.com/message/163357 EDIT: As explained here https://developer.apple.com/library/content/qa/qa1887/_index.html "Apps that are developed and tested only for simulator devices will not compile to the device unless both the simulator and device support the same architecture. For example, if you target a device running iOS 8.3 and set the "Base SDK" to the previous iOS 8.2 and the "iOS Deployment Target" to iOS 8.0, you will get a build error. To correct the error, change the "Base SDK" to the 8.3 or set the "iOS Deployment Target" to iOS 8.3."