flutter_unity_pod/UnityLibrary/UnityFramework.podspec
2025-11-20 11:46:52 +08:00

48 lines
1.3 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Pod::Spec.new do |s|
s.name = 'UnityFramework'
s.version = '1.0.0'
s.summary = 'Local Unity iOS Framework'
s.description = 'Local development pod for Unity iOS export.'
s.homepage = 'http://localhost'
s.license = { :type => 'MIT' }
s.author = { 'dev' => 'dev@local' }
# Unity iOS 工程路径
s.source = { :path => '.' }
# iOS 13 起
s.platform = :ios, '13.0'
# UnityFramework.xcframework (支持真机和模拟器)
s.vendored_frameworks = 'UnityFramework.xcframework'
# 注意Data 在 framework 内部,会自动包含
# 如需额外资源可在此添加
# 保留所有符号
s.preserve_paths = [
'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