Agora-Flutter-SDK
Agora-Flutter-SDK copied to clipboard
App sandbox issue when trying to upload the app build to app store connect

I am using agora_rtc_engine flutter package and trying to upload my app to app store connect and facing this issue.
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
Thanks, @littleGnAl for your quick response. Yes, I have done that in both DebugProfile.entitlements and Release.entitlements files.

Is it works or not?
No, If I remove the package it is working but not with the package. How can I fix this?
Same issue, any solutions for this?
Still waiting for this to publish my macos app. :/
Same issue here, also waiting for publishing to macos app.
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:
- Go to
AgoraRtcWrapper.framework/Resourcespath
cd /The/path/to/your/flutter/project/macos/Pods/AgoraIrisRTC_macOS/AgoraRtcWrapper.framework/Resources
- 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
- Sign the
AgoraRtcScreenSharing
codesign -s - -i io.agora.iris.rtc.screensharing -o runtime --entitlements AgoraRtcScreenSharing.entitlements -f AgoraRtcScreenSharing
- 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.
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.
I'm not very sure if there are any configs missing in your's project.
@littleGnAl Confirm it's working, i can push the macos app to Testflight now. Thank you.
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.
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.