更新到Xcode 7.3,iOS 9.3 SDK后,Theos导入private framework编译时报错的解决方案

本文介绍了在Xcode更新到最新版本及iOS SDK 9.3后遇到的ld警告和框架未找到等问题的解决方案。通过下载特定版本的iOS SDK并修改Makefile中的目标配置,可以有效解决此类编译错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

报错具体信息为:

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/PrivateFrameworks'
ld: framework not found XXX

暂行解决方案

这里52下载iOS 9.2 SDK,解压后放到

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

下,然后在Makefile中指定TARGET为iOS 9.2:

export TARGET = iphone:clang:9.2:5.0

即可。

参考:

github.com/theos/theos 52
Issue: iOS SDK9.3 - PrivateFrameworks issues
closed by wybielaczon
Hi,
i have just updated to the latest Xcode and iOS SDK9.3 and i get the following error when trying to make:
ld:...
Component: Makefiles Platform:OSX


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值