We can add arbitrary key-value pairs, like “base API URL” or similar. We want to change how the app with the new target behaves at runtime, which means we need to add parameters. Once you do, don’t forget to return to project settings, search for plist and rename it here. Which you probably want to rename to something more descriptive. Us duplicating the target resulted in a copy of your ist file. To generate these icons, you can use the excellent app Bakery. I would recommend using a different icon, perhaps the existing one but with a badge that says “TEST” or “DEV” or something. You can also change the minimal iOS version, supported platforms, and more. You should also probably reset the “Version” and “Build” numbers. The only required step for what we need to accomplish is to change the Bundle ID. Since we created a copy, all values are the same. Select your project in Xcode and then under “TARGETS”, right-click the one you want to Duplicate and select “Duplicate”. The easiest way to create a new target - and IMO the only one worth doing - is to duplicate the existing one. Which you will after reading this □ Creating a new target This way, it is impossible to mix these apps on TestFlight and release the dev version by accident to the App Store.Īnother use case is when you have an enterprise app that can be customized per customer - you can easily publish multiple versions without managing Git branches.Īll this is pretty straightforward - if you know what to do. What are the use cases? Perhaps you want a dedicated dev version of your app that connects to different backend server and even uses a custom icon. Since apps are identified by their Bundle ID, the clean solution is to create a new target for these “flavors”. Then in the drop-down menu select your new id_ecdsa key.There are cases when you want your app to appear like two or more apps in TestFlight or even in the App Store. Otherwise copy the token there and paste it into the Personal Access Token field in Xcode.įinally, where it says to Clone Using: make sure to select SSH. Go to GitHub -> Settings -> Developer Settings -> Personal Access Tokens, and generate a new token if needed. It asks for a password or if it asks for a Personal Access Token do Next, Tap the "+" button to add a new account. So we have to delete it and add the account back. The issue is selecting the new key from this existing account is not updating Xcode to use the key. Then click on Remove to remove the old account. Highlight your current GitHub account and delete it by tapping the "-" button located in the bottom left of the popup. Now that you have your new key setup it's time to tell update your Xcode account to use the new key which is not as simple as selecting it from the drop-down for some reason. Click on Add SSH Key and confirm your password if needed. Give your key a relevant title and paste what you copied from your clipboard. pbcopy Settings -> SSH and GPG Keys, and click on New SSH Key. Run the following command to copy your new key to clipboard. Next, add the SSH key to your github account. This should generate two keys id_ecdsa and id_ecdsa.pub Been suffering through this same exact issue for the past couple hours and finally found a solution:įirst, (if you haven't already updated your SSH key) generate a new SSH key using ECDSA with the following command: ssh-keygen -t ecdsa -C "your_email"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |