cant link with a main executable files...for architecture armv7

指定的framework 不支持对 armv7s 的支持, 也就不支持搭载A6处理器的iPhone 5.

ld: warning: directory not found for option ‘/Applications/Xcode 7.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks

对于这个问题,搜集了网上的解决办法大致总结如下三条:

解决方法一:
点击项目,选择 Targets->***Tests
选择build setting ,找到 Frameworks Search Path 或者 Library Search Paths
删除$(SDKROOT)/Developer/Library/Frameworks,
或者用$(PLATFORM_DIR)/Developer/Library/Frameworks来替换。

cant link with a main executable files...for architecture armv7_第1张图片

解决方案二:

cant link with a main executable files...for architecture armv7_第2张图片

解决方案三:

cant link with a main executable files...for architecture armv7_第3张图片

大家可以尝试这个三种解决方案,我是第三种方案,选择方案后,记得command + shift + k 清理一下

你可能感兴趣的:(cant link with a main executable files...for architecture armv7)