Search Issue Tracker

Fixed in Unity 2019.1

Votes

15

Found in

2018.2.1f1

Issue ID

1065311

Regression

No

[macOS] GameKit reference in the application when Game Center is not used, App Store rejects the build

MacOS

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2Core functionality majorly impacted

Reproduction steps:
1. Open the attached project.
2. Build it as macOS Standalone.
3. Navigate to the "AppName.app" location using Terminal.
4. Input this command (Don't forget to rename the 'AppName' ):
grep -r -i -c "gamekit" "AppName.app"
5. Check the output:

Actual behavior:
- There will be more than 0 references (More than 0 'example:1').

Expected behavior:
- 0 references (Every line says 'example:0').

Reproduced with:
macOS Standalone, iOS
2018.2.0b1, 2018.2.13f1, 2018.3.0b6, 2019.1.0a4

Comments (13)

  1. E89889fbd0cd85d12394e507aab5c79f?d=mm

    jason_yak

    Dec 18, 2018 23:41

    This issue is not fixed. I've just been rejected using 2018.2.19. Trying out using the MachOView hack. Isn't it about time the mac app store was treated as a legitimate platform? At the very least can Unity please please add the option to export to an xcode project just like the export to project option you offer for Android and iOS? The current delivery process for mac apps is terrible, meanwhile Apple are making great strides in growing the platform. These kinds of hacks are just silly.

  2. 96eb49d9be762c9c6848235d6052c9ec?d=mm

    rafgra

    Dec 12, 2018 13:21

    UGUR is right. optool fix didn't worked for me also. However, his workaround (https://forum.unity.com/threads/app-links-against-the-gamekit-framework-reject-by-apple-reviewer.542306/#post-3577490) made my app accepted. Note, that I used different values, because I didn't have Webkit listed.

    I can't understand why this is not fixed yet.

  3. C5268404626c809c04caffd9649c5971?d=mm

    ugur

    Dec 09, 2018 20:13

    to all who have this issue, too: so the optool fix did not work for me (lead to the app not launching anymore afterwards), what worked for me (app passed review fine) was this workaround:
    https://forum.unity.com/threads/app-links-against-the-gamekit-framework-reject-by-apple-reviewer.542306/#post-3577490

  4. C5268404626c809c04caffd9649c5971?d=mm

    ugur

    Dec 09, 2018 20:13

    to all who have this issue, too: so the optool fix did not work for me (lead to the app not launching anymore afterwards), what worked for me (app passed review fine) was this workaround:
    https://forum.unity.com/threads/app-links-against-the-gamekit-framework-reject-by-apple-reviewer.542306/#post-3577490

  5. 509a067290155d97ad7f36dac57a2a27?d=mm

    Oscar-Tsang

    Dec 09, 2018 09:21

    Fixed in Unity 2019.1?

    Unity 2018.3 still haven't release yet! DO you mean unity 2018 is useless on macOS?

  6. C5268404626c809c04caffd9649c5971?d=mm

    ugur

    Dec 07, 2018 21:07

    @VAIDAS_BUDRYS: when i try to strip gamekit using optool as you said, afterwards the app crashes on launch attempt with error
    Symbol not found: _CGSizeZero

  7. 6e4f8edc05c20ca4753aa20860be95cb?d=mm

    Vaidas_Budrys

    Dec 03, 2018 08:47

    I'd say at least a couple of weeks until it gets to public beta. In the meantime, "optool" can be used to strip the GameKit reference:
    https://github.com/alexzielenski/optool - sample commands:
    optool uninstall -c weak -p /System/Library/Frameworks/GameKit.framework/Versions/A/GameKit -t YourApp.app/Contents/MacOS/YourAppExecutable

  8. D0c77b5cd033214c0e3dd9416e9bc3a7?d=mm

    GCS_Brian

    Nov 28, 2018 17:56

    That's wonderful to hear, Vaidas. Any rough ETA?

  9. 6e4f8edc05c20ca4753aa20860be95cb?d=mm

    Vaidas_Budrys

    Nov 28, 2018 11:27

    I've got a fix for this on the way.

  10. D0c77b5cd033214c0e3dd9416e9bc3a7?d=mm

    GCS_Brian

    Nov 21, 2018 01:39

    I am still investigating, but I believe we are also experiencing this issue on OSX. I believe the gamekit is being included via UnityEngine.SocialPlatforms. We are using Unity version 2018.2.7f1.

    >grep -r -i -c "SocialPlatforms" in our .app directory brought up

    ./Contents/Resources/Data/Managed/UnityEngine.GameCenterModule.dll:1
    ./Contents/Resources/Data/Managed/UnityEngine.dll:1
    ./Contents/MacOS/DevApp:3 (this is our executable)

    Additionally, our otool output includes several references to GameCenter and its functions.

    000000010147b008 0x101486668 _OBJC_CLASS_$_AchievementWrapper
    isa 0x101486690 _OBJC_METACLASS_$_AchievementWrapper
    superclass 0x0 _OBJC_CLASS_$_NSViewController
    cache 0x0 __objc_empty_cache
    vtable 0x0
    data 0x101480240 (struct class_ro_t *)
    flags 0x194 RO_HAS_CXX_STRUCTORS
    instanceStart 104
    instanceSize 112
    reserved 0x0
    ivarLayout 0x1013aca90
    layout map: 0x01
    name 0x1013acc86 AchievementWrapper
    baseMethods 0x101480180 (struct method_list_t *)
    entsize 24
    count 3
    name 0x1013ab4d8 showAchievementsUI
    types 0x1013ad346 v16@0:8
    imp 0x100c298f0 -[AchievementWrapper showAchievementsUI]
    name 0x1013ab4b5 gameCenterViewControllerDidFinish:
    types 0x1013acfc9 v24@0:8@16
    imp 0x100c29a60 -[AchievementWrapper gameCenterViewControllerDidFinish:]
    name 0x1013a79c7 .cxx_destruct
    types 0x1013ad346 v16@0:8
    imp 0x100c29a80 -[AchievementWrapper .cxx_destruct]
    baseProtocols 0x101480120
    count 1
    list[0] 0x10149a930 (struct protocol_t *)
    isa 0x0
    name 0x1013acc99 GKGameCenterControllerDelegate
    protocols 0x1014800e0
    instanceMethods 0x1014800f8 (struct method_list_t *)
    entsize 24
    count 1
    name 0x1013ab4b5 gameCenterViewControllerDidFinish:
    types 0x1013acfc9 v24@0:8@16
    imp 0x0

    If you have any additional information regarding how to get around this, we'd love to hear it. Apple has rejected our latest build due to this (it may have been happening earlier, but they missed it or let it slide, perhaps?)

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.