问题
The app runs perfectly on every simulator but when I try to run it on a physical device , it shows the following error :-
I also tried to run it on various physical devices like iPhone 6 , iPhone 7 and iPhone 11. After that I came to a conclusion that the error is occurring on devices running on version of iOS 13.3.1 as App only runs successfully on iPhone 6 which is running on iOS 12.4.4
I also tried to run new project on same physical devices but it keeps showing me blank screen (on devices running on iOS 13.3.1) and if I install any framework in that new project then it's showing same error as shown in image.
I already tried:
- cleaning project
- restarting project
- restarting Mac
- reinstalling Xcode
回答1:
In Alamofire issue tracker peoples are suggesting that doing these steps:
- remove/comment
use_frameworks!
in Podfile - add
use_modular_headers!
in Podfile - pod update
- pod install
- clean and run
solves the issue with using free Apple ID on iOS 13.3.X
回答2:
This appears to be a known issue, and most people say it is a problem with using a non-paid Apple ID. Some kind of provisioning thing.
https://github.com/Alamofire/Alamofire/issues/3051
回答3:
Apple blocked utilizing external frameworks on free accounts with 13.3.1 upgrade. Try downgrading to 13.3.
Reference and solution here: Library not loaded: @rpath/FBLPromises.framework/FBLPromises iOS 13.3.1
来源:https://stackoverflow.com/questions/60014739/app-runs-perfectly-on-simulators-but-not-on-physical-devices-on-ios-13-3-1