lib/cocoapods-packagerthk/builder.rb in cocoapods-packagerthk-1.0.3 vs lib/cocoapods-packagerthk/builder.rb in cocoapods-packagerthk-1.0.4

- old
+ new

@@ -298,10 +298,14 @@ end linker_flags.reject { |e| e == "-l#{@spec.name}" || e == '-lPods-packager' } end def ios_build_options - "ARCHS=\'#{ios_architectures.join(' ')}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'" + # xcode14 打的包在xcode13上会无法运行,这里需要做下配置,添加 -fno-objc-msgsend-selector-stubs 参考 http://events.jianshu.io/p/cadf4ec9102b + # $(ARCHS_STANDARD) 使可以打全架构,否则xcode14 不支持armv7 + "ARCHS=\'#{ios_architectures.join(' ')}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments -fno-objc-msgsend-selector-stubs\'" + + # "ARCHS=\'$(ARCHS_STANDARD)\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments -fno-objc-msgsend-selector-stubs\'" end def ios_architectures # archs = %w(x86_64 i386 arm64 armv7 armv7s) 暂时只编译x86_64 arm64 archs = %w(x86_64 arm64)