React native fastlane9/13/2023 Finally setup a pre-build action in your Xcode scheme with the command echo $ENVFILE > /tmp/envfileĪpologies don't have time for a more detailed write up, feel free to reply should you like more details and I will help where I can. ![]() Then tell fastlane to use the correct xcconfig file through the xcconfig param in gym. Your app is a vanilla native iOS app (youd need to make a few tweaks to get things working for a React Native app, for example). Create a react-native project: react-native init YourAppName At the root of your react-native project: Setup fastlane: cd YourAppName & mkdir fastlane & cd fastlane & touch Fastfile Install the App Center plugin from the root of the project: cd. Bit trickier but setup xcconfig files for your different environments in your Xcode project and have a variable in there called ENVFILE. env.client1 /tmp/envile & bundle exec fastlane ios releaseī. setup a package script in your package.json file and run the command prior to your fast lane command, e.g. There are a few options for this including:Ī. env.client1 > /tmp/envfile prior to build. Setup your variables for images paths etc based on the desired environmentĭo the required setup work as per the packages readme, including needing to run the command echo.I tried going with the 3rd option first, but dealing with the native assets (icons for Android and iOS) was hard - it would require a special build step to replace the assets based on the variable. env.someEnv files in your ReactNative project (the above package uses these) LyndseyFerguson Actually we had CI, but the server has been shut down :'( So, when we set it up again we can probably deal with that. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |