Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经将一个自定义框架复制到我的应用程序包中,但是,我似乎无法正确包含它,因为我得到了:dyld:未加载库:错误。
所以简而言之,是否有一个 xcode 构建设置变量会给我我的包路径?
如果您的框架在/Contents/Frameworks文件夹中,则将框架的安装目录设置为@executable_path/../Frameworks框架目标或使用以下命令。
/Contents/Frameworks
@executable_path/../Frameworks
install_name_tool -id @executable_path/../Frameworks/myFramework.framework/myFramework path/myFramework.framework/myFramework