本文介绍了react-native AwesomeProject 的 Xcode 构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 OS X 10.7.5 上运行 Xcode 4.6.3.我已经在 Xcode 中将 iOS 部署目标设置为 6.1 并选择了 iPhone 6.1 模拟器.当我点击运行时,React Packager 出现并说它准备好了.

I'm running Xcode 4.6.3 on OS X 10.7.5. I've set iOS Deployment Target to 6.1 in Xcode and selected the iPhone 6.1 simulator. When I hit Run the React Packager appears and says it is ready.

Xcode 构建失败,出现四个与 RCTImageDownloader.m 相关的解析错误,并且还有九个目标完整性警告:

Xcode then fails to build with four parse errors related to RCTImageDownloader.m and there are also nine Target Integrity warnings:

/Users/SM/AwesomeProject/node_modules/react-native/Libraries/AdSupport/RCTAdSupport.xcodeproj iOS 部署目标7.0"比目标 RCTAdSupport 中的 SDKiOS 6.1"更新

/Users/SM/AwesomeProject/node_modules/react-native/Libraries/AdSupport/RCTAdSupport.xcodeproj iOS Deployment Target '7.0' is newer than SDK 'iOS 6.1' in target RCTAdSupport

解决这个问题有哪些选择?

What are my options for resolving this problem?

推荐答案

这些工具不支持构建比 SDK 支持的更新的部署目标.您需要将部署目标从 7.0 降低到 6.1 或使用更新的工具(这也需要更新版本的 OSX).

The tools do not support building for a newer deployment target than the SDK supports. You need to lower the deployment target from 7.0 to 6.1 or use newer tools (which will require a newer version of OSX as well).

这篇关于react-native AwesomeProject 的 Xcode 构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 03:50