After upgrading from Xcode 8.1 to 8.2, I encountered a Swift Compiler error in my project. I use the latest version of Swift and Carthage for dependency management. It did a great job with Xcode 8.1, and now I tried a few hours to fix it, clearing the DerivedData
and Simulator data, clearing Xcode and deleting the Build
folder, but nothing helps. I have only one version of Xcode.
I get the following compilation error:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler cd <ProjectSource> export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault -- all files to compile -- unknown>:0: error: unexpected input file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code
The folder referenced is as follows:
Actually this is so, so I donβt know what is happening ... Help is greatly appreciated! :)
source share