Skip to content

Commit

Permalink
Add install step for Objective-C in the README.md
Browse files Browse the repository at this point in the history
This fixes juicycleff#47
  • Loading branch information
krispypen authored Oct 17, 2019
1 parent ef8edde commit c0190f9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@ IOS will export unity project to `ios/UnityExport`.

```swift
InitArgs(CommandLine.argc, CommandLine.unsafeArgv)
```
Or when using Objective-C your `main.m` should look like this:
```
#import "UnityUtils.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
InitArgs(argc, argv);
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
```
5. Opt-in to the embedded views preview by adding a boolean property to the app's `Info.plist` file with the key `io.flutter.embedded_views_preview` and the value `YES`.

Expand Down

0 comments on commit c0190f9

Please sign in to comment.