崩溃日志开始如下:
Termination Reason: DYLD, [0x4] Symbol missing
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Symbol not found: __T0SiN
Referenced from: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftos.dylib
Expected in: /Volumes/VOLUME/*/REDACTED.app/Contents/MacOS/../Frameworks/libswiftCore.dylib
in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftos.dylib
我们的部署目标设置为10.12。无论是否嵌入了快速库,崩溃日志都是相同的。以下是我们应用本身的otool -L
的输出:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1555.10.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0)
@rpath/Alamofire.framework/Versions/A/Alamofire (compatibility version 0.0.0, current version 0.0.0)
@rpath/KeychainAccess.framework/Versions/A/KeychainAccess (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1670.0.0)
@rpath/libswiftAppKit.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftCore.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftCoreData.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftCoreFoundation.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftCoreGraphics.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftCoreImage.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftDarwin.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftDispatch.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftFoundation.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftIOKit.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftMetal.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftObjectiveC.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftQuartzCore.dylib (compatibility version 1.0.0, current version 1000.11.37)
@rpath/libswiftXPC.dylib (compatibility version 1.0.0, current version 1000.11.37)
研究该主题会导致https://github.com/sindresorhus/gifski-app/issues/12,这似乎是一个非常相似的问题。我们使用@loader_path/../Frameworks
进行配置的尝试没有成功,并且那里的git diff没有用,因为此后已删除了许多文件。
关于旧版Xcode的任何想法或经验都是问题,但仅在某些计算机上存在?