我安装了Xcode 9.4,并且我有一个本机反应项目0.60.3,运行react-native run-ios
时出现错误
info In file included from /Users/gonglehan/Desktop/WonderWorld/ProjectN/node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.m:8:
/Users/gonglehan/Desktop/WonderWorld/ProjectN/node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.h:10:9: fatal error: 'UIKit/UIUserActivity.h' file not found
#import <UIKit/UIUserActivity.h>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
info
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening ProjectN.xcworkspace. Run CLI with --verbose flag for more details.
** BUILD FAILED **
我看到可以通过将Xcode升级到10来解决问题的人,所以我想知道是否还支持9.4 Xcode版本吗?以及如何解决这个问题... 谢谢
答案 0 :(得分:1)
您可以通过升级Xcode解决此问题。 XCode版本应为10.0 +。
[注意]
错误代码65与Xcode版本有关。