美文网首页
解决pod lib lint/repo push不支持i386编

解决pod lib lint/repo push不支持i386编

作者: iVikings | 来源:发表于2020-12-15 18:08 被阅读0次

解决pod lib lint/repo push不支持i386编译:
https://www.jianshu.com/p/88180b4d2ab7/

检测的源码在 validator.rb文件,终端执行

gem which cocoapods
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods.rb

打开 lib 文件夹,找到 cocoapods/validator.rb 文件

修改如下代码:

when :ios
        # command += %w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator)
        # command += Fourflusher::SimControl.new.destination(:oldest, 'iOS', deployment_target)
        command += %w(ARCHS=x86_64)
        xcconfig = consumer.pod_target_xcconfig
        if xcconfig
          archs = xcconfig['VALID_ARCHS']
          if archs && (archs.include? 'armv7') && !(archs.include? 'i386') && (archs.include? 'x86_64')
            # Prevent Xcodebuild from testing the non-existent i386 simulator if armv7 is specified without i386
            command += %w(ARCHS=x86_64)
          end
        end

相关文章

网友评论

      本文标题:解决pod lib lint/repo push不支持i386编

      本文链接:https://www.haomeiwen.com/subject/szwwgktx.html