Ios dyld:未加载库:@executable\u path/。/Frameworks/
错误: dyld:未加载库:@executable_path/。/Frameworks/n.framework/n 引用自:/Users/hunterp/Library/Developer/CoreSimulator/Devices//data/Containers/Bundle/Application//Demo.app/Demo 原因:找不到图像 我遵循了这个问题的每个答案: 以下是我的构建设置:Ios dyld:未加载库:@executable\u path/。/Frameworks/,ios,objective-c,swift,xcode,dyld,Ios,Objective C,Swift,Xcode,Dyld,错误: dyld:未加载库:@executable_path/。/Frameworks/n.framework/n 引用自:/Users/hunterp/Library/Developer/CoreSimulator/Devices//data/Containers/Bundle/Application//Demo.app/Demo 原因:找不到图像 我遵循了这个问题的每个答案: 以下是我的构建设置: 我怀疑您的生成设置中存在其他错误,因为您的错误消息在目录之间包含无关的斜杠 /Users/hu
我怀疑您的生成设置中存在其他错误,因为您的错误消息在目录之间包含无关的斜杠
/Users/hunterp/Library/Developer/CoreSimulator/Devices//data/Containers/Bundle/Application//Demo.app/Demo Reason: image not found
^^ ^^
(当我格式化为代码时,语法突出显示很好地指出了这一点;)
在搜索框架时,当它进入一个目录(带有..)时,它可能正在解析那些/
中的一个,而不是您所期望的
我会检查您的标题、框架和库搜索路径,查找不需要斜杠的条目,特别是当它们引用$(BUILDDIR)/
1或类似内容时
一,。我记不起实际的环境变量了我认为是错误 dyld:未加载库:@executable_path/。/Frameworks/n.framework/n 显示运行路径搜索路径设置为“@executable\u path/。/Frameworks”。
转到“构建设置”->“运行路径搜索路径”,删除“@executable\u path/。/Frameworks”(如果存在),然后添加“@executable\u path/Frameworks”
target :MainTarget, :exclusive => true do
link_with ['Target1']
pod 'SomePod'
end
target :SecondTarget, :exclusive => true do
link_with ['Target2']
pod 'SomePod'
end
为什么要在第一步删除@executable_path?您的意思是运行路径搜索路径应该为空?@AnanthKamath该路径将不会为空,而是默认路径。