Reputation: 37590
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
Upvotes: 3
Views: 854
Reputation: 10733
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";
Upvotes: 1