Build target Unity-iPhone of project Unity-iPhone with configuration ReleaseForRunning

Hi, I am getting this error on start when I Build my project in XCode. I have searched on internet… but not working. I have tried different target version… but not working… please suggest…

Build target Unity-iPhone of project Unity-iPhone with configuration ReleaseForRunning

error: /Users/xxxxxx/Projects/xxxxxx/iOSBuild/Pods/Pods/Target Support Files/Pods-Unity-iPhone/Pods-Unity-iPhone.releaseforrunning.xcconfig: unable to open file (in target “Unity-iPhone” in project “Unity-iPhone”) (in target ‘Unity-iPhone’ from project ‘Unity-iPhone’)

error: /Users/xxxxxx/Projects/xxxxxx/iOSBuild/Pods/Pods/Target Support Files/Pods-Unity-iPhone/Pods-Unity-iPhone.releaseforrunning.xcconfig: unable to open file (in target “Unity-iPhone” in project “Unity-iPhone”) (in target ‘Unity-iPhone’ from project ‘Unity-iPhone’)

error: /Users/xxxxxx/Projects/xxxxxx/iOSBuild/Pods/Pods/Target Support Files/Pods-Unity-iPhone/Pods-Unity-iPhone.releaseforrunning.xcconfig: unable to open file (in target “Unity-iPhone” in project “Unity-iPhone”) (in target ‘Unity-iPhone’ from project ‘Unity-iPhone’)

First of all, are you opening .xworkspace file?
When using CocoaPods you have to open workspace file, not project file.

Yes I was opening .workspace file

what worked for me is in terminal

pod deintegrate
and then
pod install

everything worked perfectly.

1 Like