Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set "Apple Generic Versioning" from Fastlane (without opening Xcode) #14143

Closed
4 tasks done
hydraSlav opened this issue Jan 25, 2019 · 4 comments
Closed
4 tasks done

Comments

@hydraSlav
Copy link

hydraSlav commented Jan 25, 2019

Question Checklist

Question Subject

Setting "Apple Generic Versioning" through Fastlane

Question Description

I am building a Unity Xcode project. The Xcode project is generated from scratch every time Unity runs a build.

In order to use Fastlane's increment_build_number action, the Xcode project must be configured to use "Apple Generic Versioning". Yes, I have read the document how to enable this through Xcode. However, I am building a CI system, so I cannot manually setup the Xcode project everytime.

Is there no way to set Xcode to use "Apple Generic Versioning" through some Fastlane action?

@fastlane-bot
Copy link

It seems like you have not included the output of fastlane env

To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

@hydraSlav
Copy link
Author

Right now, my only option is to run sed or perl outside of fastlane. However fastlane already provides actions for things like enabling/disabling automatic signing, so why not this?

p.s. what's the best action to run perl from within a fastlane file?

@rajivshah3
Copy link
Contributor

You can change the build settings using the Xcodeproj module. We do this in our app to manually change the signing settings: https://github.com/iotaledger/trinity-wallet/blob/develop/src/mobile/ios/fastlane/Fastfile#L12. In this case, you could try:

item.build_settings['VERSIONING_SYSTEM'] = "Apple Generic"

To get the name that the Xcodeproj module will use, go to the Build Settings tab and then go to Editor > Show Setting Names. That will change the titles to their actual names, e.g. Versioning System -> VERSIONING_SYSTEM

@hydraSlav
Copy link
Author

You can change the build settings using the Xcodeproj module.

That is very helpful!

How can I make sure Xcodeproj module (from what I understand, it's a Ruby library, rather than Fastlane) remains uptodate when Xcode version changes?

@fastlane fastlane locked and limited conversation to collaborators Apr 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants