Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Unable to create XXX-Info.plist" building using Jenkins

When I build my project from within Xcode or using XCodeBuild it builds ok, also I can create an archive within Xcode.

However when I try to build it using Jenkins and the Jenkin's xcode plugin everything builds but then during the ipa generation stage there is this error:

"error: Unable to create '/Users/..snip ..--$(SRCROOT)/NameOfProject-Info.plist"

What might the cause of this be?

TIA

like image 697
Gruntcakes Avatar asked Nov 26 '25 00:11

Gruntcakes


1 Answers

The answer is actually given by @coffeebreaks in the comment above, I just wanted to add it here for completeness.

In my case the fix was to set the path of the info.plist to a path that does not include SRCROOT, so I changed from:

INFOPLIST_FILE = "$(SRCROOT)/ProjectName/AnotherPath/Info.plist";

to

INFOPLIST_FILE = "ProjectName/AnotherPath/Info.plist";

like image 77
phi Avatar answered Nov 28 '25 15:11

phi