还是改为只支持真机调试;
1.支持模拟器合并后framework到700+M,太大 下载不方便。 2.改为弱引用,模拟器也能跑,但是调试游戏 就需要真机。
This commit is contained in:
parent
e1109cfa8c
commit
72661fc8b6
@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'UnityFramework'
|
||||
s.version = '1.0.2'
|
||||
s.version = '1.0.3'
|
||||
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'
|
||||
@ -37,7 +37,14 @@ Pod::Spec.new do |s|
|
||||
'ENABLE_BITCODE' => 'NO'
|
||||
}
|
||||
|
||||
# XCFramework 会自动处理架构选择,支持:
|
||||
# 配置弱链接,让UnityFramework变成可选的
|
||||
# 这样在不支持的架构(如模拟器)上,App也能正常启动
|
||||
# 只在实际调用Unity功能时才检查framework是否可用
|
||||
s.user_target_xcconfig = {
|
||||
'OTHER_LDFLAGS' => '$(inherited) -weak_framework UnityFramework'
|
||||
}
|
||||
|
||||
# 仅支持真机:
|
||||
# - 真机:arm64
|
||||
# - 模拟器:x86_64 (Intel Mac) + arm64 (Apple Silicon Mac)
|
||||
# - 模拟器:不支持(弱链接,运行时检查)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user