Xcode报错:embedded dylibs/frameworks are only supported on iOS 8.0 and later

时间:2021-09-23 22:15:17

ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/XCTest.framework/XCTest) for architecture armv7


以前好久的代码,今天来编译时,发现出现了上面这个错误了,认真观察这个错误,是frameworks要在iOS 8.0以上环境才行,然后又观察(@rpath/XCTest.framework/XCTest),发现是工程的Tests,于是修改iOS Deployment Target为8.0以上就行了。


选择TARGETS下的xxxTests,选择Build Settings,找到iOS Deployment Target修改为8.0以上。

Xcode报错:embedded dylibs/frameworks are only supported on iOS 8.0 and later