Apple Unity Plug-Ins

RSS for tag

Connect your game to Game Center, Core Haptics, PHASE audio, accessibility, and game controller frameworks.

Posts under Apple Unity Plug-Ins tag

54 Posts
Sort by:
Post not yet marked as solved
1 Replies
419 Views
We plan to release a new app version with Apple Game Center login ability and wondering if that will require any additional review or verification by Apple upon app submission. In addition I can add, that we already add Game Center support in provision profile and activated Game Center in app store connect few app versions ago.
Posted Last updated
.
Post not yet marked as solved
2 Replies
499 Views
Hi, I have implemented Core Haptics into a Unity app but there are some unexpected behaviours. I followed the documentation on GitHub and did not get any errors while implementing it. My issue is core haptics giving errors on iPhone 11. iOS 16.7 but works perfectly on iPhone 13 and iPhone 14 pro. This is the error code I am getting in logs: [hapi] HapticDictionaryReader.mm:44 -[HapticDictionaryReader readAndVerifyVersion:error:]: ERROR: Unsupported version number: 10.0 2023-11-20 18:20:01.040069+0300 *** - Game599:12190] Error occurred playing JSON one-shot: Error Domain=com.apple.CoreHaptics Code=-4809 "(null)" CHException: Exception of type 'Apple.CoreHaptics.CHException' was thrown. at Apple.CoreHaptics.CHHapticEngine.PlayPattern (Apple.CoreHaptics.CHHapticPattern ahap) [0x00000] in <00000000000000000000000000000000>:0 at ButtonController.OpenCenterPanel (UnityEngine.Transform panel) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents() UnityEngine.EventSystems.StandaloneInputModule:Process() It says unsupported version number: 10.0 I do not know why. For the context I play haptic patterns like this example: HapticEngine.PlayPatternFromAhap(_hitAHAP); How can I solve this problem?
Posted
by theleroks.
Last updated
.
Post marked as solved
2 Replies
454 Views
Refering to the apple accessibility plugin for Unity: https://github.com/apple/unityplugins. I have implemented the apple accessibility into my app and it works mostly well. However, why are button clicks (voiceover) triggered by a triple tap instead of a double tap, unlike applications developed using Xcode? Is this normal? Is there a way to change it to a double tap? Thank you
Posted Last updated
.
Post not yet marked as solved
0 Replies
558 Views
Hello, Our game has been released since 2020, and we recently started seeing a crash starting with iOS 16.4.1. We're having trouble reproducing it, it only seems to happen on brand new devices with GameCenter accounts that have not run our game before, it seems to me the first time the game tries to make a save. We just got our hands on a pair of new devices and still cannot reproduce the crash. My knowledge of Obj-C is exactly zero, so it's difficult for me to know what's really going on here. I've attached the crash log and a screenshot of what I believe is the file and line pointed to in the crash. From what little I can tell, it might just be that the function on line 58 is missing an extra argument as with the one on line 63, is it possible it's that easy? Is it possible that's something that's changed starting with 16.4.1? Any help is appreciated! 2023-10-31_10-13-06.1263_+0100-c51744f526ed25211ba33f86d78d738167b94ce2.crash
Posted Last updated
.
Post not yet marked as solved
2 Replies
413 Views
Hello, I am writing a plugin for iOS for Unity. And recently the phone was updated, then I had to switch from xcode 14 to xcode 15, and now my plugin has stopped running with the error thread 1: EXC_BAD_ACCESS (code=1, address=0x0). But at the same time, there is no such error, if the project has appsflyer, one signal plugins at the same time, I can't find what exactly they can change, that there is no such problem. I have reviewed my entire project and the problem arises at this stage: [WebView loadRequest:request]; Just in case, I output data on delegates to the console and whether the wkwebview itself is empty, but no, everything is fine: 2023-10-26 13:42:10.239021+0300 WWebView[40416:4492528] request: <NSURLRequest: 0x282505d40> { URL: https://www.google.com/ } 2023-10-26 13:42:10.239052+0300 WWebView[40416:4492528] WebView.navigationDelegate != nil 2023-10-26 13:42:10.239074+0300 WWebView[40416:4492528] WebView.UIDelegate != nil Tell me, what could be the cause of such a problem?The plugin is written in objective-c, it worked before xcode 15, I can't check on the versions below, there is no device on which I could run xcode 14, since this version does not support new iOS versions.
Posted
by Stelette.
Last updated
.
Post not yet marked as solved
2 Replies
1.3k Views
hi, i want to use ar, face tracking on ios platform. i have a ios build and open xcode 15. my ios device have ios 17. this build is a simple build, i don't wrote any code, just i work on unity editor. my editor version 2022.3.f1. Finally, i get an error this. "Command PhaseScriptExecution failed with a nonzero exit code" how can i solve this problem
Posted Last updated
.
Post not yet marked as solved
2 Replies
1.6k Views
HELLO WORLD! I am currently developing an amazing Unity mini Game. The game development has come to the deploying stage. Using Unity allows me to deploy this game on MacOS, iOS, Android and Windows which is fantastic . However, I really need this game to have the iOS widget extension as a key feature on mobile. Just like the "Steve" dinosaur game which can be played in widget. I had seen a lot of tutorials and youtube videos but still cant find a solution which make Unity iOS app into a widget. If I really want to make widget Game on iOS, do I need to develop the whole game all over again in xcode or using GameKit? Really hoping there's a way to simply convert the Unity iOS app into a widget.
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.2k Views
We are using the Apple Unity plugin (Gamekit) to authorize players, using a Game Center account. To get player info we run a task from the plugin, var fetchItemsResponse = await GKLocalPlayer.Local.FetchItems(); But when this code run, there is an error in Xcode. The error is the following, Thread 1: EXC_BAD_ACCESS (code=257, address=0x2) MacOS 12.5 Monterey Unity 2021.3.4f1 XCode 14.2 AppleCore Unity Package - 1.0.2 AppleGameKit Unity Package - 1.0.3 Crashes when calling FetchItems in Unity Installed in iPhone XR (iOS 15.2.1)
Posted
by k3ndro1.
Last updated
.
Post not yet marked as solved
3 Replies
1.1k Views
I am trying to get the Apple Core Haptics plug-in to work with Unity but am having issues when I try to build the project. I created a completely blank project with just the Core and CoreHaptics plug-ins installed. I then put in a single script (below) which is a replication of the script shared in the WWDC22 video on this subject. Then when I try to build and run that project I get a series of “Undefined symbol:” errors in Xcode. These effect the CoreHaptics, UIFeedbackGenerator frameworks. If I remove the script and just build an empty project with Core and CoreHaptics installed the build runs successfully. What am I doing wrong or missing that is causing these errors? using Apple.CoreHaptics; using System.Collections; using UnityEngine; public class Haptics : MonoBehaviour { private CHHapticEngine _hapticEngine; private CHHapticPatternPlayer _hapticPlayer; [SerializeField] private AHAPAsset _hapticAsset; private void PrepareHaptics() { _hapticEngine = new CHHapticEngine(); _hapticEngine.Start(); _hapticPlayer = _hapticEngine.MakePlayer(_hapticAsset.GetPattern()); } private void Play() { _hapticPlayer.Start(); } }
Posted
by jnl1565.
Last updated
.
Post not yet marked as solved
1 Replies
2.3k Views
Hi all, I downloaded Xcode 15 and installed the iOS 17 updates. When I try to build any Unity apps I developed for my dissertation on Xcode now, I get this error: Command PhaseScriptExecution failed with a nonzero exit code. I've tried every solution posted to similar issues, uninstalled/reinstalled everything, updated everything to latest versions, turned everything off and on again, etc. My apps were all working yesterday and now all of them are broken. I've spent all day trying to fix it and this is becoming an urgent matter...please help 😭
Posted
by treyolee.
Last updated
.
Post not yet marked as solved
0 Replies
466 Views
Trying to build a volume scene, and get this error. Build/B3/Libraries/ARM64/Packages/com.unity.xr.visionos/Runtime/VisionOSNativeBridge.mm:457:33 Use of undeclared identifier 'ar_plane_extent_get_plane_anchor_from_plane_extent_transform' The line in the file is: simd_float4x4 worldMatrix = ar_plane_extent_get_plane_anchor_from_plane_extent_transform(plane_extent); I previously got this error in Xcode 15 beta 8 and now in Xcode 15 beta 2. Unity 2022.3.5f1 LTS
Posted Last updated
.
Post marked as solved
3 Replies
1.7k Views
I have a Unity project, after setting up Apple.Gamekit plugin, it show up some error when build with XCode: ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/mac/Documents/Bonex/BoneX_demo1/iOSBuild_demo2/Libraries/libiPhone-lib.a(unwind_test_arm64.o) Undefined symbols for architecture arm64: "_GKLocalPlayer_Authenticate", referenced from: _GKLocalPlayer_GKLocalPlayer_Authenticate_mA13EED25E9E6BC8EAA0DE8E36D389AC904B41435 in Apple.GameKit.o (maybe you meant: _GKLocalPlayer_GKLocalPlayer_Authenticate_mA13EED25E9E6BC8EAA0DE8E36D389AC904B41435, _GKLocalPlayer_Authenticate_m3BBD62A177560D3F93691F97581B484A6EBA0836 ) "_GKLocalPlayer_GetIsMultiplayerGamingRestricted", referenced from: _GKLocalPlayer_GKLocalPlayer_GetIsMultiplayerGamingRestricted_m347F15CBE262C877190B5C7F4B55AFAD595705D5 in Apple.GameKit.o (maybe you meant: _GKLocalPlayer_GKLocalPlayer_GetIsMultiplayerGamingRestricted_m347F15CBE262C877190B5C7F4B55AFAD595705D5) "_GKLocalPlayer_GetIsPersonalizedCommunicationRestricted", referenced from: _GKLocalPlayer_GKLocalPlayer_GetIsPersonalizedCommunicationRestricted_mB1E3D7AE957AAA19E6ABBDCDEAD9821B09EB1DC1 in Apple.GameKit.o (maybe you meant: _GKLocalPlayer_GKLocalPlayer_GetIsPersonalizedCommunicationRestricted_mB1E3D7AE957AAA19E6ABBDCDEAD9821B09EB1DC1) "_GKLocalPlayer_GetIsUnderage", referenced from: _GKLocalPlayer_GKLocalPlayer_GetIsUnderage_mF266E6F8AA10922F3B02ED3A877D3C403EA46045 in Apple.GameKit.o (maybe you meant: _GKLocalPlayer_GKLocalPlayer_GetIsUnderage_mF266E6F8AA10922F3B02ED3A877D3C403EA46045) "_NSError_Free", referenced from: _NSError_NSError_Free_m0AFB1ED4BF090D6E5276479A1F53680D4FD47A4A in Apple.Core.o (maybe you meant: _NSError_NSError_Free_m0AFB1ED4BF090D6E5276479A1F53680D4FD47A4A) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) The plugin I added, which is provided by Apple: https://github.com/apple/unityplugins My : build appunityplugin used 2020.3.33f1 XCode to version 14.3.1 Please help! Thank you!!!
Posted
by SSB4455.
Last updated
.
Post not yet marked as solved
3 Replies
778 Views
Hi, I'm unity developer. In the last update my game encountered a fatal error. The player is charged, but I get the OnPurchaseFailed event. before release I tested on test flight, and everything is fine. but when i release our users have this problem. I tried to rollback to the previous version, but when I released it to users, I also got this fatal error. I don't know what the cause is. please help. Unity Version 2020.3.41f1 Unity IAP version 4.5.2 Easy Mobile pro 2.19.0
Posted
by DangTung.
Last updated
.
Post not yet marked as solved
1 Replies
733 Views
This is the error I'm getting while trying to build a project imported from unity. Building for 'xrOS-simulator', but linking in object file (Libraries/libiPhone-lib.a[5](MeshSkinningNEON64_blzfc.o)) built for 'xrOS'. I built a simple VR game using xr interaction toolkit in unity. When I try to import it into xcode and run it on vision os simulator, I'm getting this error. Can someone help me figure this out?
Posted
by Axe0.
Last updated
.
Post not yet marked as solved
1 Replies
821 Views
We are upgrading our ObjC-based iOS multiplayer game to Unity, so we plan to use the Unity Apple plugins. Specifically, we want to use Apple.Core and Apple.Gamekit packages. Cloned the project from https://github.com/apple/unityplugins Built the package using Unity 2020.3.33f1 In the Unity Editor, used Windows > Package Manager and added both packages from the tarball. No errors; all looks good. 5, Built & Run the project and installed the game on an iPhone 13 device. 6. Once the game starts, we see the following errors, and the game quits. Errors: '/private/preboot/Cryptexes/OS/usr/lib/swift/AppleCoreNative.framework/AppleCoreNative' (no such file), '/private/var/containers/Bundle/Application/0CF8E689-36C1-4AA6-9CF6-1E078EC1A3FB/Game.app/Frameworks/AppleCoreNative.framework/AppleCoreNative' (no such file), '/private/var/containers/Bundle/Application/0CF8E689-36C1-4AA6-9CF6-1E078EC1A3FB/Game.app/Frameworks/UnityFramework.framework/Frameworks/AppleCoreNative.framework/AppleCoreNative' (no such file), '/private/var/containers/Bundle/Application/0CF8E689-36C1-4AA6-9CF6-1E078EC1A3FB/Game.app/Frameworks/AppleCoreNative.framework/AppleCoreNative' (no such file), '/System/Library/Frameworks/AppleCoreNative.framework/AppleCoreNative' (no such file, not in dyld cache) Anyone, please help us to resolve the above issue?
Posted
by Kuralsoft.
Last updated
.
Post not yet marked as solved
3 Replies
1.7k Views
About the problem I built a Unity project for the visionOS platform and opened it on Xcode-beta 4. When I tried to run the project, the build failed and the errors following appeared: Errors Building for 'xrOS-simulator', but linking in object file (/<Path to my Unity Xcode project>/Libraries/libiPhone-lib.a[5](MeshSkinningNEON64_blzfc.o)) built for 'xrOS' Linker command failed with exit code 1 (use -v to see invocation) I have no idea what causes the issue and how to solve it. Is there anybody to find the cause and the solution for the problem? Note Unity has nothing to do with the matter, I guess, because the build on Unity is always successfully completed. Environment Unity 2022.3.5f1 that has visionOS Build, iOS Build, and Mac Build modules. Xcode-beta 4
Posted
by jin-nash.
Last updated
.
Post not yet marked as solved
0 Replies
672 Views
I've build the Apple Unity plugins and added them to my Unity project. I've also loaded up the Apple.GameKit 1.0.4 GameKit Demo Scene. When I run this scene in the Unity editor, I get the prompt to select my Game Center account, and the username appears in the Editor Game window UI. From here, the other on-screen buttons work as well, I can pull up the Game Center Achievements window or the Realtime Matchmaking UI. If I build this project for macOS, and run the resulting app on the Mac, it isn't working. On the game UI, the "Local Player Name" text never updates to show the username of my GameCenter account. None of the on screen buttons work, nothing happens when clicked. If I build from unity for macOS with debug on, I can attach a debugger while running the app. If I do this, and add breakpoints, it seems that the application hits the first line from the Start() function of GameKitSample.cs : _localPlayer = await GKLocalPlayer.Authenticate(); But execution never seems to get past this point. It also doesn't seem to throw any exception. It just gets stuck here and I can't use any Game Kit features in the sample scene. What is missing? The same code seems to interact with Game Center just fine while running from the Unity Editor.
Posted Last updated
.
Post not yet marked as solved
4 Replies
2.1k Views
I built the Gamekit Sample in apple/unityplugins for iOS and ran "_localPlayer = await GKLocalPlayer.Authenticate();" It worked fine up to the point where the GameCenter popup was displayed. However, the "OnRealtimeMatchmake()" and "OnToggleAccessPoint()" will result in the following error "MissingMethodException: Default constructor not found for type Apple.GameKit.Multiplayer.GKMatchRequest at System.RuntimeType.CreateInstanceMono" and "MissingMethodException: Default constructor not found for type Apple.GameKit.GKAccessPoint at System.RuntimeType.CreateInstanceMono" errors and does not work properly. Please tell me what is the problem here. The environment is as follows iPhone SE (iOS15.5), Unity2020.3.33f1, XCode13.4.1
Posted
by ykawano.
Last updated
.
Post not yet marked as solved
0 Replies
392 Views
the device orientation message maybe wrong when running unity app on ios 16, more information about this question is https://forum.unity.com/threads/game-may-start-with-incorrect-orientation.1410231/
Posted
by woker123.
Last updated
.