[英]ld: framework not found SDL2_image
I want to use SDL2_image frameworks
(an extension of SDL2 framework), i've downloaded and copied the SDL2_image frameworks
in the folders below: 我想使用SDL2_image frameworks
(SDL2框架的扩展),我已经在以下文件夹中下载并复制了SDL2_image frameworks
:
/Library/Frameworks/ /图书馆/框架/
/System/Library/Frameworks /系统/库/框架
/Users/ < user > /Library/Frameworks /用户/ <用户> /库/框架
my code works fine with SDL2 framework but when i add SDL2_image framework i get an error as follows: 我的代码在SDL2框架上工作正常,但是当我添加SDL2_image框架时,出现如下错误:
ld: framework not found SDL2_image
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i tried clearing my framework search path, tried to change my valid architecture section none of them has worked. 我试图清除框架搜索路径,试图更改我的有效架构部分,但没有一个起作用。
I solved the problem by changing the Base SDK
option to Current OS X
for both the Target and Modules 我通过将Target和Module的Base SDK
选项更改为Current OS X
来解决了这个问题
Instructions are as follows: 说明如下:
from project navigator select your project -> Select build Settings -> from architectures field change Base SDK to Current OS X . 从项目导航器中选择您的项目->选择构建设置->从体系结构字段中将Base SDK更改为Current OSX 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.