Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embedded dylibs/frameworks are only supported on iOS 8.0 and later for architecture armv7

Tags:

xcode

ios

I just upgraded from Xcode 6.4 to Xcode 7GM and am now getting the following warning when running my old project

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

This problem only happens in Xcode 7.But when I run the project in Xcode 6.4,it has never happened.

like image 632
Tracy Zhao Avatar asked Sep 11 '15 06:09

Tracy Zhao


4 Answers

I experience the exact same issue on Xcode 7.1 beta3, and what I do is to search keyword 'IPHONEOS_DEPLOYMENT_TARGET' to make sure all targets above 8.0.

like image 102
Lei Zhang Avatar answered Nov 15 '22 21:11

Lei Zhang


  • I had a bug when updating xcode to ver 7.3. I had a solution for me. I think it useful!

attack

like image 43
PhuocLuong Avatar answered Nov 15 '22 21:11

PhuocLuong


Make sure all your TARGETs has same deployment target (installed pods or framework too) .

For example in below example all targets (Bolts,FBSDKCoreKit, FBSDKLoginKit .... SingleSignOnPod) must have same target (say 7.0)..

enter image description here

like image 28
PANKAJ VERMA Avatar answered Nov 15 '22 22:11

PANKAJ VERMA


Your deployment target is lower than 8.0, which is the lowest iOS version that supports embedded frameworks. If you deploy the app on a device running 7.x, it would crash at runtime. This is why the compiler gave this warning.

The reason why this didn't happen on Xcode 6.4 is unknown. I myself dose get the warning when I did the same thing (chose deployment target 7.x but used embedded frameworks).

To solve this, just raise the deployment target to 8.0 or above. If you do need to support 7.x, try to use static libraries instead of embedded frameworks.

like image 23
Fujia Avatar answered Nov 15 '22 22:11

Fujia