Issue Type: Bug Bug
Assignee: Unassigned
Components: xcode-plugin
Created: 02/Mar/15 3:54 PM
Description:

Have a project, that builds an iOS app and has dependencies managed via CocoaPods; have some pod included, that contains resources (e.g. pod 'AWSiOSSDKv2' - this pod includes additions .json files, that must be embedded inside the .app bundle)

The CocoaPods creates additional post-build step in Xcode setup to copy pods resources into the app bundle
This step actually runs a generated shell script, which is located at {SRCROOT}/Pods/Target Support Files/Pods-{target-name}/Pods-{target-name}-resources.sh
the script is using $CONFIGURATION_BUILD_DIR env. var to define the destination folder for resources copying

Now create a job at Jenkins, that will do the following:

  • call 'pod install' for the project (this will download pods, generate copying script, create project workspace)
  • add Xcode plugin as build step, setup it to create an Archive and override CONFIGURATION_BUILD_DIR

When you run a job, the copy resources script will reference CONFIGURATION_BUILD_DIR to the value of the build dir, setup earlier
However, .app, that will be archived is located in DerivedData directory

As result, the script copies resources to the wrong path; the archive generated doesn't contain required resources (the app will probably crash during run-time)

If you update the Xcode build step not to override CONFIGURATION_BUILD_DIR, everything works like expected; CONFIGURATION_BUILD_DIR in the copy-resources script references to the correct location in the DerivedData dir

Environment: cocoapods 0.35.0
xcode Version 6.1.1 (6A2008a)
os x 10.10.1
jenkins-ci xcode-plugin 1.4.8
jenkins v1.600
Project: Jenkins
Priority: Major Major
Reporter: Denis Syrokvash
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to