jenkins Testflight:无法使用fastlane xcode 14部署React native应用程序

zzwlnbp8  于 2023-06-21  发布在  Jenkins
关注(0)|答案(1)|浏览(156)

我用的是xcode 14和fastlane 2.211。使用React Native 0.67
在使用Jenkins将测试版本部署到testflight时,弹出以下错误。
fatal error: module 'yoga' in AST file '**.pcm' (imported by AST file '/**.pch') is not defined in any loaded module map file; maybe you need to load Yoga.modulemap'?
如何修复我的构建?

um6iljoc

um6iljoc1#

我使用的是Xcode 14.3,下面的pod文件配置对我很有用。试着去匹配它如果你能

config = use_native_modules!

use_react_native!(:path => config[:reactNativePath])

target 'ProjectTests' do
  inherit! :complete
end

use_flipper!({ 'Flipper' => '0.95.0' })
IOS_VERSION = '12.0'

post_install do |installer|

    flipper_post_install(installer)

    installer.pods_project.targets.each do |target|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
              config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = IOS_VERSION
            end
      
            case target.name
            when 'RCT-Folly'
              target.build_configurations.each do |config|
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
              end
            end
        end
    end
end

检查我对devOps管道上complete fastlane setup的回答

相关问题