Merge pull request #62 from krispypen/patch-2
Add install step for Objective-C in the README.md
This commit is contained in:
commit
ebcfb0cfa0
11
README.md
11
README.md
|
@ -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`.
|
||||
|
||||
|
|
Reference in New Issue