Multitude of bugs using iMessage Sticker Pack App in Xcode 15.3

ghz 8months ago ⋅ 128 views

I'm trying to create a sticker pack app for iMessage using Xcode 15.3 and nothing seems to be working.

  1. The attribute editor does not show up when selecting sticker assets. This makes it impossible to edit the accessibility text on the stickers. This apple dev forum post describes the same issue.

  2. Trying to run the app on my physical devices gives me a variety of errors depending on the device I'm using

    a. On my iPad I get this error:

    Failed to log access with error: access=, error=Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.privacyaccountingd" UserInfo={NSDebugDescription=connection to service named com.apple.privacyaccountingd}

    b. On my iPhone I get this error:

    Couldn't read values in CFPrefsPlistSource<0x30079c120> (Domain: com.apple.country.carrier_1, User: kCFPreferencesCurrentUser, ByHost: No, Container: /var/mobile/Library/CountryBundles/, Contents Need Refresh: No): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access

  3. Trying to run the app in the device simulator doesn't work either. The simulator will crash, or the app just won't load.

I tried creating a sticker pack app in Xcode 14.2 on my older laptop and it doesn't have these issues. Unfortunately, I can't run a build on my devices running iOS 17, and the simulator still crashes. I've tried trouble shooting the other errors, but I'm not entirely sure what they are alluding to. Some solutions have recommended custom entitlements or info.plists, but I haven't had any success. It's kind of funny that a no code application template is having so many problems.

Answers

It seems like you're encountering multiple issues while trying to create a sticker pack app for iMessage using Xcode 15.3. Let's address each of the issues you mentioned:

  1. Attribute Editor not Showing Up: The issue with the attribute editor not showing up when selecting sticker assets could be a bug or a compatibility issue with Xcode 15.3. Since it's a known issue described in the Apple Developer Forums, you may need to wait for a fix from Apple or try using an older version of Xcode temporarily until the issue is resolved.

  2. Errors on Physical Devices:

    • Error on iPad: The error message you provided seems related to privacy accounting and may not directly affect the functionality of your app. However, you can try to investigate further by checking if there are any privacy-related settings on your iPad that could be causing this error.
    • Error on iPhone: This error message indicates that the app is trying to access preferences outside its container, which may be related to sandboxing issues. Make sure your app's entitlements and permissions are correctly configured to access the necessary resources.
  3. Simulator Crashes: If the simulator crashes or the app fails to load, it could be due to various reasons such as compatibility issues, resource constraints, or incorrect project settings. Try resetting the simulator, cleaning the build folder, or running the app on a different simulator device to see if the issue persists.

  4. Troubleshooting Steps:

    • Ensure that your Xcode project settings, entitlements, and info.plist file are correctly configured for sticker pack development.
    • Check if there are any specific requirements or restrictions for sticker pack apps in the iMessage App Store Review Guidelines.
    • Try creating a new project using the sticker pack template in Xcode and see if the issue persists.
    • If possible, try testing your app on a different macOS or iOS version to see if the issue is specific to Xcode 15.3 or your current environment.
  5. Seeking Support: If you're unable to resolve the issues on your own, consider reaching out to Apple Developer Support or posting your questions in relevant developer forums to get assistance from the community or Apple engineers.

By following these troubleshooting steps and seeking support as needed, you should be able to overcome the challenges and successfully create your sticker pack app for iMessage.