...App/Pods/Target Support FIles/Pods-App/Pods-App.debug.xcconfig: unable to open file in (target "App in project "App)

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.

Any help is appreciated!

3 Likes

I was running into this error as well and I think it might have gone along with a permission error that I had just solved here. https://stackoverflow.com/questions/9574543/myproject-is-locked-for-editing-and-you-may-not-be-able-to-save-your-changes

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

1 Like

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.

Hi guys,

I am facing the same issue except my “Target Support Files” Folder is empty.

What can I do?

Thanks

1 Like

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!

What are we missing? Why don’t they exist?

If you navigate to the ios/App folder and run

pod install

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)

3 Likes

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?

1 Like

Right!! This was the solution for me, thanks richard :raised_hands:

1 Like

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.

@thomasvidas I think Richard refers to:

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.