我正在尝试在jenkins服务器上构建Unity + React应用程序。我在Jenkins服务器上使用cocoapods。我正在将podfile复制到我的src / Unity目录并运行`pod install'。
我的podfile如下:
platform :ios, "7.0"
pod 'React'
pod 'React/Core'
pod 'React/RCTText'
pod 'React/RCTNetwork'
pod 'React/RCTWebSocket'
pod 'React/RCTImage'
pod 'React/RCTLinkingIOS'
pod 'React/RCTAdSupport'
pod 'React/RCTSettings'
pod 'React/RCTActionSheet'
pod 'React/ART'
我的构建命令如下:
xcodebuild build -workspace AppName.xcworkspace -scheme Pods - configuration Release ARCHS="armv7 arm64" -sdk iphoneos CONFIGURATION_BUILD_DIR=bin/iPhone/Release
构建步骤给出了以下错误:
/Users/sprocket/workspace/BarnStormer-iOS-Experimental/bin/app/game/build/iphone/src/Pods/React/React/Modules/RCTAccessibilityManager.m:133:28: error: expected ';' in 'for' statement specifier
02:38:16 for (NSString *__nonnull JSCategory in JSMultipliers) {
02:38:16 /Users/sprocket/workspace/BarnStormer-iOS-Experimental/bin/app/game/build/iphone/src/Pods/React/React/Modules/RCTAccessibilityManager.m:133:28: error: use of undeclared identifier 'JSCategory'
02:38:16 /Users/sprocket/workspace/BarnStormer-iOS-Experimental/bin/app/game/build/iphone/src/Pods/React/React/Modules/RCTAccessibilityManager.m:134:33: error: use of undeclared identifier 'JSCategory'
02:38:16 NSNumber *m = JSMultipliers[JSCategory];
02:38:16 ^
02:38:16 /Users/sprocket/workspace/BarnStormer-iOS-Experimental/bin/app/game/build/iphone/src/Pods/React/React/Modules/RCTAccessibilityManager.m:135:71: error: use of undeclared identifier 'JSCategory'
02:38:16 NSString *UIKitCategory = [self.class UIKitCategoryFromJSCategory:JSCategory];
JSCategory似乎是React核心的一部分,我仍然遇到此错误。任何帮助表示赞赏。