在将Swift类添加到旧的Xcode项目后,我得到这个错误。
dyld:库未加载:@rpath/libswift_stdlib_core.dylib
我怎样才能使项目再次运行?
在将Swift类添加到旧的Xcode项目后,我得到这个错误。
dyld:库未加载:@rpath/libswift_stdlib_core.dylib
我怎样才能使项目再次运行?
当前回答
在我的例子中,我试图导入一个自定义框架,并得到类似的错误。 结果我不得不在嵌入式二进制文件中导入框架,而不是在链接框架和库中。
嵌入式二进制文件在项目设置-> ->通用下
其他回答
解决方案6:
在我们的案例中,企业分销证书已被撤销。生成一个新的证书并更新配置配置文件解决了这个问题。
(这个错误似乎有很多不同的原因。希望这能帮助到一些人。)
对我来说,这个问题是由于我的苹果全球开发者关系认证机构无效。
从这里下载: https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
拖放到Keychain Access中,清理项目,然后运行。
在更新到Xcode 10.2 (Swift 5)后遇到了这个问题。找到下面的苹果链接,显示了两个选项: https://support.apple.com/kb/DL1998?locale=en_US
对我来说,我把MacOS更新到10.14.4 (OS中包含Swift库)。否则,“下载Swift 5运行时支持命令行工具”的旧操作系统。
我有一个Obj-C项目,我开始添加swift源文件。 以下为我解决了这个问题:
链接:RUNPATH SEARCH PATHS = $(inherited) @executable_path/Frameworks Swift编译器-代码生成:嵌入内容包含Swift = YES
我刚刚从Xcode 6.3模板创建了一个新项目,并将项目设置与旧的原始项目进行了比较。
参考https://forums.developer.apple.com/thread/21292
这个解决方案对我很有效:
It occurred on my side when building an app in the command line via xcodebuild and xcrun PackageApplication, signing the app with an enterprise profile. On our CI build servers, the certificate was set to "Always Trust" in the keychain (select certificate -> Get Info -> Trust -> "Use System Default" can be changed to "Always Trust"). I had to set it back to "Use System Default" in order to make this work. Initially we set this to "Always Trust" to work-around the keychain dialogs that appear after software updates and certificate updates.