问题遇到的现象和发生背景
uniapp打包IOS模拟器能成功运行,但是真机打包点开软件之后闪退。
IOS 版本:15.6.1
uniapp SDK 版本:3.6.3
编译架构:arm64
注:这个app没有使用CocoaPods
用代码块功能插入代码,请勿粘贴截图
运行结果及报错内容
dyld[237]: Library not loaded: '@rpath/ReactiveObjC.framework/ReactiveObjC'
Referenced from: '/private/var/containers/Bundle/Application/EADF598F-28C3-456E-B4A6-F595D57D9039/xiaoyue-collaborative-office-ios.app/xiaoyue-collaborative-office-ios'
Reason: tried: '/private/var/containers/Bundle/Application/EADF598F-28C3-456E-B4A6-F595D57D9039/xiaoyue-collaborative-office-ios.app/Frameworks/ReactiveObjC.framework/ReactiveObjC' (no such file), '/private/var/containers/Bundle/Application/EADF598F-28C3-456E-B4A6-F595D57D9039/xiaoyue-collaborative-office-ios.app/Frameworks/ReactiveObjC.framework/ReactiveObjC' (no such file), '/System/Library/Frameworks/ReactiveObjC.framework/ReactiveObjC' (no such file)
Library not loaded: '@rpath/ReactiveObjC.framework/ReactiveObjC'
Referenced from: '/private/var/containers/Bundle/Application/EADF598F-28C3-456E-B4A6-F595D57D9039/xiaoyue-collaborative-office-ios.app/xiaoyue-collaborative-office-ios'
Reason: tried: '/private/var/containers/Bundle/Application/EADF598F-28C3-456E-B4A6-F595D57D9039/xiaoyue-collaborative-office-ios.app/Frameworks/ReactiveObjC.framework/ReactiveObjC' (no such file), '/private/var/containers/Bundle/Application/EADF598F-28C3-456E-B4A6-F595D57D9039/xiaoyue-collaborative-office-ios.app/Frameworks/ReactiveObjC.framework/ReactiveObjC' (no such file), '/System/Library/Frameworks/ReactiveObjC.framework/ReactiveObjC' (no such file)
(lldb)
我的解答思路和尝试过的方法
相关链接:
https://developer.apple.com/forums/thread/128435
https://github.com/Alamofire/Alamofire/issues/3051#issuecomment-580003683
https://www.proyy.com/7069586410784686110.html