44 lines
1.4 KiB
Ruby
44 lines
1.4 KiB
Ruby
Pod::Spec.new do |s|
|
||
s.name = 'UnityFramework'
|
||
s.version = '1.0.1'
|
||
s.summary = 'Unity iOS Framework for Flutter integration'
|
||
s.description = 'Unity iOS framework packaged as CocoaPod for Flutter projects.'
|
||
s.homepage = 'https://gitea.sdws.shop/xim/flutter_unity_pod'
|
||
s.license = { :type => 'MIT' }
|
||
s.author = { 'xim' => 'dev@local' }
|
||
|
||
# Git 仓库
|
||
s.source = { :git => 'https://gitea.sdws.shop/xim/flutter_unity_pod.git', :tag => s.version.to_s }
|
||
|
||
# iOS 13 起
|
||
s.platform = :ios, '13.0'
|
||
|
||
# UnityFramework.framework(注意路径包含 UnityLibrary)
|
||
s.vendored_frameworks = 'UnityLibrary/UnityFramework.xcframework'
|
||
|
||
# 保留所有符号
|
||
s.preserve_paths = [
|
||
'UnityLibrary/UnityFramework.xcframework'
|
||
]
|
||
|
||
# 链接依赖
|
||
s.frameworks = [
|
||
'ARKit', 'AVFoundation', 'AudioToolbox', 'CoreGraphics',
|
||
'CoreMedia', 'CoreMotion', 'CoreVideo', 'GameController',
|
||
'Metal', 'OpenGLES', 'QuartzCore', 'UIKit', 'WebKit',
|
||
'Security', 'MobileCoreServices'
|
||
]
|
||
|
||
s.libraries = 'z', 'c++'
|
||
|
||
# 允许非模块化头
|
||
s.pod_target_xcconfig = {
|
||
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
|
||
'ENABLE_BITCODE' => 'NO'
|
||
}
|
||
|
||
# XCFramework 会自动处理架构选择,支持:
|
||
# - 真机:arm64
|
||
# - 模拟器:x86_64 (Intel Mac) + arm64 (Apple Silicon Mac)
|
||
end
|