Sha256: 6ae2ebfb309dc1e7fab0d3a28e874b52fefb610a570334885d29a67ad067a4b4
Contents?: true
Size: 1.82 KB
Versions: 7
Compression:
Stored size: 1.82 KB
Contents
#私有源 # source 'xxxxx' #cocoapods源 最后声明, 可以解决私有源pod 与 公共源pod 重名的问题 source 'https://github.com/CocoaPods/Specs.git' # Uncomment the next line to define a global platform for your project platform :ios, '9.0' inhibit_all_warnings! use_frameworks! :linkage => :static # 使用 framework形势的静态库, 注释可变为.a 静态库 use_modular_headers! #此字段用于pod自动生成 swift module 伞文件 def st_installLocalPods(dir, arr) arr.each do |onePod| pod onePod, :path => File.join(dir, onePod) end end def pod_develop dir = '../../' arr = [ 'YKRPC_POD_NAME' ] st_installLocalPods(dir, arr) end project 'YKRPC_POD_NAME_Example.xcodeproj' target 'YKRPC_POD_NAME_Example' do # Pods for YKRPC_POD_NAME_Example pod_develop end target 'NotificationContent' do # Pods for NotificationContent end target 'NotificationService' do # Pods for NotificationService end # cocoapods pod install hook post_install do |installer| # 添加创建时候类前缀 installer.pods_project.root_object.attributes["CLASSPREFIX"] = "YKRPC_CLASS_PREFIX" # 添加 class prefix # project编辑配置 installer.pods_project.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0' config.build_settings['CLANG_WARN_DOCUMENTATION_COMMENTS'] = 'NO' end # 单个target编辑配置 installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0' #修改pod的最低版本 # 以下是xcode14 忽略 bundle 类型pod签名 config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = "" config.build_settings['CODE_SIGNING_REQUIRED'] = "NO" config.build_settings['CODE_SIGNING_ALLOWED'] = "NO" end end end
Version data entries
7 entries across 7 versions & 1 rubygems