Skip to content

Commit d3559c3

Browse files
committed
fix readme
1 parent 611f3c1 commit d3559c3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ public class ButtonBehavior : MonoBehaviour
4646
### iOS
4747

4848
1. Build Unity app to `[project_root]/unity/builds/ios`
49-
2. Open `unity/builds/ios/Unity-iPhone.xcodeproj` in XCode
50-
3. Select Data folder and set a checkbox in the "Target Membership" section to "UnityFramework"
51-
4. You need to select the NativeCallProxy.h inside the Libraries/Plugins/iOS folder of the Unity-iPhone project and change UnityFramework’s target membership from Project to Public. Don’t forget this step! https://miro.medium.com/max/1400/1*6v9KfxzR6olQNioUp_dFQQ.png
52-
5. Build iOS project to iphone and test Unity App
53-
6. Open your react-native project in XCode
54-
7. Add `Unity-iPhone.xcodeproj` to your XCode: `File` -> `Add Files to [project_name]...` -> `[project_root]/unity/builds/ios/Unity-iPhone.xcodeproj`
55-
8. Add `UnityFramework.framework` to `Frameworks, Libraries, and Embedded Content`
49+
2. Add `Unity-iPhone.xcodeproj` to your XCode: press the right mouse button in the Left Navigator XCode -> `Add Files to [project_name]...` -> `[project_root]/unity/builds/ios/Unity-iPhone.xcodeproj`
50+
3. Add `UnityFramework.framework` to `General` / section `Frameworks, Libraries, and Embedded Content`
51+
4. Select Data folder and set a checkbox in the "Target Membership" section to "UnityFramework"
52+
5. You need to select the NativeCallProxy.h inside the `Unity-iPhone/Libraries/Plugins/iOS` folder of the Unity-iPhone project and change UnityFramework’s target membership from Project to Public. Don’t forget this step! https://miro.medium.com/max/1400/1*6v9KfxzR6olQNioUp_dFQQ.png
53+
6. In `Build Phases` remove UnityFramework.framework from `Linked Binary With Libraries`
54+
7. In Build Phases move Embedded Frameworks before Compile Sources ( drag and drop )
5655

5756
### Android
5857
Under development...

example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "eslint ."
1111
},
1212
"dependencies": {
13-
"@azesmway/react-native-unity": "^0.1.9",
13+
"@azesmway/react-native-unity": "^0.1.10",
1414
"@react-navigation/native": "^6.0.8",
1515
"@react-navigation/native-stack": "^6.5.2",
1616
"react": "17.0.2",

0 commit comments

Comments
 (0)