Closed 0neSe7en closed 2 years ago
我也用 m1,之前没试过模拟器,现在发现确实有问题,这个问题我这边大概也没有什么办法
我之前是直接运行到手机上的,或者用 xcode 直接运行在 macos 上:
相比模拟器,这种方式更高效,不过缺点就是会 app 有概率卡死,有段时间没用 macos 了不晓得这个问题修复了没。
嗯嗯,可以的。我先用直接在macos上运行的方式。感谢~
@0neSe7en @qiuxiang 怎么在MacOS上运行呢?
我就是直接在手机上运行,或者在m1上以原生App的形式运行。
just do this on Apple M2, iphonesimulator can run amap now....
installer.pods_project.targets.each do |target| target.build_configurations.each do |config| # https://stackoverflow.com/questions/72344149/how-to-solve-xcode-build-error-undefined-symbols-for-architecture-x86-64 config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = "arm64"
# https://stackoverflow.com/a/62526546/4348530
if Gem::Version.new('12.0') > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end end
![image](https://github.com/qiuxiang/react-native-amap3d/assets/7344437/65561223-2c9e-45ba-8ab0-a5cb3173f7ee)
复现方式: 在一台M1的电脑上: