Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

App sandbox issue when trying to upload the app build to app store connect

Open Saikrishnamasetti opened this issue 3 years ago • 10 comments

Screenshot 2022-07-26 at 11 33 46 AM

I am using agora_rtc_engine flutter package and trying to upload my app to app store connect and facing this issue.

Saikrishnamasetti avatar Jul 26 '22 06:07 Saikrishnamasetti

You should enable the App Sandbox in your project if you need to distribute your APP to Mac App Store https://developer.apple.com/documentation/security/app_sandbox?language=objc

littleGnAl avatar Jul 26 '22 06:07 littleGnAl

Thanks, @littleGnAl for your quick response. Yes, I have done that in both DebugProfile.entitlements and Release.entitlements files.

Screenshot 2022-07-26 at 1 08 11 PM

Saikrishnamasetti avatar Jul 26 '22 06:07 Saikrishnamasetti

Is it works or not?

littleGnAl avatar Jul 27 '22 04:07 littleGnAl

No, If I remove the package it is working but not with the package. How can I fix this?

Saikrishnamasetti avatar Jul 27 '22 04:07 Saikrishnamasetti

Same issue, any solutions for this?

imariman avatar Jul 29 '22 12:07 imariman

Still waiting for this to publish my macos app. :/

imariman avatar Aug 02 '22 23:08 imariman

Same issue here, also waiting for publishing to macos app.

ThangD avatar Aug 11 '22 02:08 ThangD

By following the guide https://developer.apple.com/documentation/xcode/embedding-a-helper-tool-in-a-sandboxed-app?language=objc, maybe you can try the steps below but without testing:

  1. Go to AgoraRtcWrapper.framework/Resources path
cd /The/path/to/your/flutter/project/macos/Pods/AgoraIrisRTC_macOS/AgoraRtcWrapper.framework/Resources
  1. Create an entitlements file
/usr/libexec/PlistBuddy -c "Add :com.apple.security.app-sandbox bool true" "AgoraRtcScreenSharing.entitlements"
/usr/libexec/PlistBuddy -c "Add :com.apple.security.inherit bool true" AgoraRtcScreenSharing.entitlements
  1. Sign the AgoraRtcScreenSharing
codesign -s - -i io.agora.iris.rtc.screensharing -o runtime --entitlements AgoraRtcScreenSharing.entitlements -f AgoraRtcScreenSharing
  1. Then try to rebuild your APP see if works or not.

But for the disclaimer, I didn't test these steps cause my personal development account can't publish the APP to the APP store, so I can't verify twhether he steps work or not. And this is just a temporary solution.

littleGnAl avatar Aug 11 '22 16:08 littleGnAl

I try to build our example and upload it to the Mac App Store, it failed with the AgoraRtcScreenSharing not signed error, run the following command to sign the AgoraRtcScreenSharing:

codesign -o runtime -f -v --timestamp --deep -s "YOUR CODE_SIGN_IDENTITY" /Users/workspace/Agora-Flutter-SDK/example/macos/Pods/AgoraIrisRTC_macOS/AgoraRtcWrapper.framework/Resources/AgoraRtcScreenSharing

Then process the archive follow, it works fine for the example.

image

I'm not very sure if there are any configs missing in your's project.

littleGnAl avatar Sep 07 '22 08:09 littleGnAl

@littleGnAl Confirm it's working, i can push the macos app to Testflight now. Thank you.

ThangD avatar Sep 07 '22 09:09 ThangD

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] avatar Sep 28 '22 09:09 github-actions[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

github-actions[bot] avatar Apr 28 '23 11:04 github-actions[bot]