Skip to content

Commit

Permalink
typo fixes and implementing suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssa-embrace committed Dec 13, 2024
1 parent ec9630a commit 46606e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/unity/integration/configure-embrace-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Now when you build and run your project, our editor script will use those values

## Known Issues

Our Apple SDK and the Unity iOS SDK use Swift, which has a known issue with the current Unity build pipeline. To handle this issue, after creating your XCode project, add a Dummy Swift file to the UnityFramework target by right clicking the `Unity-iPhone` xcode project in the Project Navigator and selecting the `New File from Template` option. Make sure to add the file to BOTH the game target AND the UnityFramework target. Then, make sure to create the bridging heading. There's no need to write add any code. This will adjust the linker pipeline to invoke Swift appropriately.
Our Apple SDK and the Unity iOS SDK use Swift, which has a known issue with the current Unity build pipeline. To handle this issue, after creating your XCode project, add a Dummy Swift file to the UnityFramework target by right clicking the `Unity-iPhone` xcode project in the Project Navigator and selecting the `New File from Template` option. Make sure to add the file to BOTH the game target AND the UnityFramework target. Then, make sure to create the bridging heading. There's no need to add any code. This will adjust the linker pipeline to invoke Swift appropriately.

For further information, please refer to this discussion: https://github.com/CocoaPods/CocoaPods/issues/11960

Expand Down
2 changes: 1 addition & 1 deletion docs/unity/upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Please note that in upgrading, you may have to update values in the generated te
## Swift Library Workaround
Currently the latest version of Xcode and Unity's iOS build pipeline have an issue where including a Swift library (such as the Embrace Apple SDK) does not result in Xcode invoking its linker toolchain correctly. This can block builds and will generally involve messages mentioning symbols such as `swift_FORCE_LOAD_$_swiftCompatibility`. The issue is rather recent, and listed [here](https://forums.developer.apple.com/forums/thread/762854).

The easiest solution to this is to add a Dummy Swift file in the exported Xcode project out of Unity by right clicking the `Unity-iPhone` xcode project in the Project Navigator and selecting the `New File from Template` option. When doing this make sure to add the Swift file to the UnityFramework in Xcode. Make sure to add the file to BOTH the game target AND the UnityFramework target. Then, make sure to create the bridging heading. There's no need to write add any code. The sole purpose of the file is to provide Xcode the necessary hints so that it invokves its toolchain correctly.
The easiest solution to this is to add a Dummy Swift file in the exported Xcode project out of Unity by right clicking the `Unity-iPhone` xcode project in the Project Navigator and selecting the `New File from Template` option. When doing this make sure to add the Swift file to the UnityFramework in Xcode. Make sure to add the file to BOTH the game target AND the UnityFramework target. Then, make sure to create the bridging heading. There's no need to add any code. The sole purpose of the file is to provide Xcode the necessary hints so that it invokes its toolchain correctly.

## Some features still have yet to be migrated
- Replacement for `EndAppStartup` planned for both Embrace Android and Embrace Apple SDKs
Expand Down

0 comments on commit 46606e8

Please sign in to comment.