Skip to content

Adding Unity as an embedded library inside a Flutter porject

Notifications You must be signed in to change notification settings

irfanayaz89/FlutterxUnityxNative

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter_x_Unity_x_Native

Setup the project

  1. Download and Install Git LFS from https://git-lfs.github.com/
  2. Clone the project

Steps to build iOS

  1. Go to directory 'cd FlutterxUnityxNative/ios'
  2. Open the xcworkspace 'Runner.xcworkspace' and select the target Runner. Go tab 'Signing and Capabilities' and select an appropriate Team for the Apple Developer Account.
  3. Go back to the main directory (FlutterxUnityxNative) 'cd ..' and run the command 'flutter build ios'. Make sure the build runs successfully.
  4. Attach an iOS device and run the project using XCode after selecting the attached device or run using flutter command 'flutter run'.

Steps to build Android

  1. Go to the main directory 'FlutterxUnityxNative' and run the command 'flutter build apk --debug'
  2. Use Android Studio to run the project.
  3. If you encounter this error 'could not setcwd() (errno 2: No such file or directory)', go to the android folder inside project repo and delete '.idea' and '.gradle' folders. Go to your gradle home directory and delete 'caches' folder. In the Android Studio, Go to File > Invalidate Caches / Restart and press the 'Invalidate and Restart' button.
  4. Press the Gradle sync button and run the app.

About

Adding Unity as an embedded library inside a Flutter porject

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published