unity3d – When creating an environment-based application for development, application, testing, etc., I want to create an ipa file for each environment simply by changing the build contents of xCode without starting from Unity build every time.

Question: Question:

If you have any of the following knowledge, would you please let me know?

What you want to do

After building Unity in Jenkins, I want to change the xCode setting of Jenkins (using shell or xCode Plugin, etc.) and give it a different name from the Bundle Identifier set in Unity so that an application with different settings will be created. ..

Purpose

When creating an application for each environment such as development, application, test, etc., I want to create an ipa file for each environment only by changing the build contents of xCode without starting from Unity build every time.

What i did

Certificate files and provisioning files for development, application, and testing have been set on the build MacBook.

I did the following with Jenkins settings:

  1. Unity build process.
  2. Created info.plist Unity for cp specified environment to copy over the plist for the environment specified in "Run Shell" to the plist created by Unity in the build.
  3. Make xCode build settings.
  4. Run the job.
  5. The job ended normally, but when I opened it with xcode, it was changed to the specified info.plist.

problem

I don't know how to change the ProductName.
I want to use the character after the Bundle Identifier in the Info Plist after changing the ProductName.
After the build was completed, the XX part of the XX.app and XX.dSYM files remained the characters after the Bundle Itentifier set in Unity.

environment

  • MacBook Pro (2.8Ghz Intel Core i7)
  • Unity 4.5.5f1
  • Xcode 5.1.1
  • Jenkins (using xCode Plugin 1.4.5 using Unity3d Plugin 0.6)

Answer: Answer:

I haven't tried it, but it may be changed with the following command.

xcodebuild -target (ターゲット名) -configuration (Configuration名) build PRODUCT_NAME=プロダクト名

example:

xcodebuild -target MyApp -configuration Debug build PRODUCT_NAME=NewName
Scroll to Top