I am trying to run my ionic-vue app on an ios device. I went through the whole process of adding the platform. when I went to xCode to build the app it fails throwing me this error.
…App/Pods/Target Support FIles/Pods-App/Pods-App.debug.xcconfig: unable to open file in (target "App in project "App)
I have searched for a solution to this but I cannot seem to find any.
FIxing that error let me open in xCode and then I got this unable to open error so I used the Finder to go into the folder ‘ios/App/Pod/Target Support Files/Pods-App’ and did the permissions as above on the Pods-App.debug.xcconfig, setting the permissions to read & write for that file. After that I was able to build successfully
This is correct! You just helped me get through ~3 hours of troubleshooting this silly pods issue.
For those following along on the stackoverflow link he posted, there is a relevant comment that states:
The “Apply to enclosed items” option is only available for directories. I was able to fix it by changing permissions on the parent directory instead of the .xcodeproj. Or use the chown command with the -r recursive flag set.
As it stated, if you don’t see the ‘Apply to encolsed items’ on the project file, be sure to check the folder of the project.
My “Target Support Files” folder is also empty, even when starting new projects and doing nothing but adding iOS via Capacitor. Nothing seems to generate these Pods-App config files, and I can’t see a way to do it myself.
pod deintegrate/pod install will generate the folders necessary, but not the xcconfig files!
then that will generate that folder for you - I’m not sure why this is missing from the Ionic docs but when I start a new project this is what I have to do (after running ionic capacitor copy ios)
Which docs are you referring to? ionic capacitor sync ios will run copy and also update. The update command runs a pod install on iOS so you won’t have to manually install pods.
I think maybe the Getting Started docs suggest doing a copy rather than a sync and with a new project that doesn’t seem to create this folder? Try following this docs - maybe I’m wrong?
The issue in my case was the camera plugin from cordova. I didn’t have any issues after uninstalling it and using the Capacitor one.
So you guys might want to check if your plugins are compatible with the capacitor project.
Here – under Running with Xcode in 1. Develop the Ionic app and sync it to the native project. – the documentation only describes that you should run the ionic capacitor copy ios command without the sync command before the simulator in Xcode gets started in the next step: 2. In Xcode, select a target simulator or device and click the play button.