I have XCode 10.2, and have tried Swift 4 & Swift 4.2. My desktop app runs fine from XCode, but crashes when I try to run it after archive.
I get this:
Termination Reason: DYLD, [0x4] Symbol missing
Application Specific Information: dyld: launch, loading dependent libraries
Dyld Error Message: Symbol not found: _$SBOWV Referenced from: /Users/USER/Desktop//My App.app/Contents/MacOS/../Frameworks/Alamofire.framework/Versions/A/Alamofire Expected in: /usr/lib/swift/libswiftCore.dylib in /Users/USER/Desktop//My App.app/Contents/MacOS/../Frameworks/Alamofire.framework/Versions/A/Alamofire
The weird thing I notice offhand is that it thinks my path is /Users/USER/Desktop/*/Live Canvas.app/Contents/MacOS/My App
. That is certainly the wrong folder - I'm not sure if that's meant as a placeholder or it thinks that's my literal, incorrect path.
I also looked at Xcode 10 Archived App Doesn't Run on Macs with Xcode 9 or Earlier Installed: DYLD, [0x4] Symbol missing? and set Always Embed Swift Standard Libraries
to Yes
for both Project
and Target
. The other question also doesn't appear to have path weirdness.
I should note that I have Swift 5 on my machine as well, however I'm on Mojave 10.14.4 so it shouldn't be an issue per https://support.apple.com/kb/DL1998?locale=en_US. It won't even let me install that because my OS is the right version.