解决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