I have a run script in Xcode that I wrote in Swift. In the build settings, I have a run script whose shell is installed in /bin/sh , and the contents are one line ./my-script.swift . This file contains only lines:
If I create for the simulator, everything works fine. If I build a device, I get a lot of errors line by line:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: Failed to create Darwin module
: 0: Failed to build Objective-C "CoreFoundation" module
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/sys/cdefs.h:680:2: Unsupported architecture
Any ideas why this is?
source share