-
Couldn't load subscription status.
- Fork 1k
Description
Every build from CLI: cordova build ios or ionic cordova build ios - is taking almost 6 minutes to complete the build. After the build, then from Xcode 14 to deploy the app to a device takes another 3 minutes.
In Xcode, during the deploy to device, the issue navigator is tracking nearly 2500 stale files outside of allowed root path warnings. If I clean and run the project <CMD> + SHIFT + K & <CMD> + SHIFT + R - which takes a few minutes to complete, then all those stale files are removed and the deploy then takes like 15 seconds.
But the next time I do a cordova build ios all those stale files return. I believe the 6 minute build time is because cordova is creating those 2500 stale files...and Xcode is trying to process/analyze them during the deploy causing 3+ more minutes of delay.
What is causing these stale files to be created...and what can I do to fix it?
My Mac environment:
Cordova 11.1.0
Cordova-ios: 6.0.2
Ionic CLI: 6.20.8
Ionic toolkit: 3.2.15
native-run: 1.7.1
Example Warnings:
Stale file '/Users/rpo/dev/myApp/platforms/ios/build/emulator/nanopb.framework' is located outside of the allowed root paths.
Stale file '/Users/rpo/dev/myApp/platforms/ios/build/emulator/nanopb.framework.dSYM/Contents/Resources/DWARF/nanopb' is located outside of the allowed root paths.
Stale file '/Users/rpo/dev/myApp/platforms/ios/build/emulator/nanopb.framework/Headers' is located outside of the allowed root paths.
Stale file '/Users/rpo/dev/myApp/platforms/ios/build/emulator/nanopb.framework/Headers/nanopb-umbrella.h' is located outside of the allowed root paths.
Stale file '/Users/rpo/dev/myApp/platforms/ios/build/emulator/nanopb.framework/Headers/pb.h' is located outside of the allowed root paths.