Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

( Flutter and Mac ) Possible to create a new project to upgrade an existing app?

Tags:

ios

flutter

I have an app in production, all worked good, but after apple forced to upgrade Xcode to run the app I started to face some issues and no one has found the solution to it yet, my business is in trouble because of this and I need a quick solution to it.

I have a question ( for mac/appstore context):

I succeeded to get around my run issue by creating a new project. I would like to know if there is a way using which I can link this new flutter project to older projet who contain the app which is in production and create a new release?

I think it needs to have the same

  • Bundle name
  • Bundle identifier signing certificate
  • Also perhaps older archives from original project etc

All these things tell me it's not possible :( but perhaps I'm wrong

like image 480
Nitneuq Avatar asked Jul 09 '20 14:07

Nitneuq


People also ask

How do I create a project in Flutter Mac?

In the case of Visual Studio Code In Visual Studio Code, you need to set up your organization first. Go to File -> Preferences -> Settings, search for flutter create organization. Edit your settings. json file and edit “dart.

Do you need Mac to develop iOS apps using Flutter?

With Flutter and Codemagic, you can build and distribute iOS apps without buying a Mac computer yourself. In this post, we will walk you through how you can create a Flutter app on Linux or Windows and use Codemagic CI/CD to set up code signing for your iOS project and release the application to the App Store.

Can Flutter be used for macOS?

macOS supports developing Flutter apps for iOS, Android, macOS itself and the web. Complete at least one of the platform setup steps now, to be able to build and run your first Flutter app.


2 Answers

I would suggest saving the project in version control, delete the current macos and build folder and regenerate it with flutter create . Then you can add back the code and config you had before in xcode. This way you will keep your current flutter project but with a new xcode macos project.

Before that, you might wanna try if calling flutter clean solves this problem. It also cleans the Xcode project.

For keeping the app you just need to have the same bundle id and a valid signing certificate. https://developer.apple.com/forums/thread/39216

like image 83
jamesblasco Avatar answered Nov 12 '22 12:11

jamesblasco


I don't think you have to create a new project.

All you have to do is delete the relevant config for the platform.

In the case of ios development, you can simply rm -rf ios In the case of android development, you can simply rm -rf android

Be sure to upgrade Xcode & flutter upgrade and navigate to the project and run flutter create .

Then you can build again. flutter build ios

You can do flutter clean to be sure that you don't leave anything behind or just get rid of the build.

This will reinitialize the platform specifics you are missing.

After that, you can port back the ios and/or android specific configurations such as bundle id and certificates.

Note: Please take a backup of the project (git would be better). Just make a new branch for the new version git checkout -b v2.

like image 34
Fawzan Avatar answered Nov 12 '22 13:11

Fawzan