-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple Privacy Manifest Error after 2.2.0 #1656
Comments
➤ PM Bot commented: Jira ticket: RDART-1016 |
i have the same problem. The Mach-O Type looks the same like the screenshot above |
@rouuuge and @Bilonik My good colleague @nirinchev has found the culprit. If you open the actual |
thank you! |
Hey folks, I think we have a fix for this, but would appreciate if you can verify it before we cut a release. Can you download these packages: https://static.realm.io/downloads/dart/2.2.0-7ff9130187a186a7cd9b90e0375a00d371ebacd6/packages.tar.gz and replace your realm dependency in your pubspec with a path one like this: dependencies
realm:
path: ../realm (assuming the packages are located a folder above your app's pubspec.yaml). The packages are identical to what's released in 2.2.0, with minor modifications of the podspec to try and place the privacy manifest in the correct resource location rather than in a resource bundle. When I tried it with the default flutter app, I was able to archive a bundle and validate it using xcode and I manually verified that the locations of the xcprivacy manifests are correct based on apple's docs. Then again, we've experienced a lot of edge cases with the way Apple does privacy manifest validation, so wouldn't be surprised if something else breaks. |
Seems to work! |
Great, we'll double check that the approach is the correct one with our iOS engineers but expect to have a hotfix for this by the end of the week. |
@nirinchev i am getting this error, when using the package with the workaround fix. |
Can you try running |
oh same here 🤦🏽♂️ |
@Bilonik & @rouuuge This concept of creating staging packages is a bit rough in the edges still. Can I ask you to add dependency_overrides:
realm_common:
path: ../realm_common
realm_dart:
path: ../realm_dart
realm_generator:
path: ../realm_generator
realm:
path: ../realm Assuming that matches the location of the downloaded packages relative to your project. Then run: dart run realm install -t macos # or what platform you are using
flutter clean
flutter run -d macos |
Also, there is another fix inbound for this. Setting |
Hi @nielsenko and @rouuuge I made this change #1657 locally and it worked. |
@Bilonik Good to hear, and that I would expect as well. However, setting |
Hi @nielsenko i can confirm with this new PR #1658 everything works good. Thanks |
If you have time for it, could I ask you to download and test the packages here https://static.realm.io/downloads/dart/2.2.0-7e968e330ab7a76bbd5c76a9b28c4013ec1cb3c2/packages.tar.gz. Same procedure as above. |
done! can confirm that it works now |
Hi |
What issue are you having? |
Hi Here is the error i'm getting after uploading the build on AppstoreConnect
Realm version: |
@stevenosse This is not the same issue as this, but instead #1679 |
Yes, my apologies, I should have been more careful. |
What happened?
HI @nirinchev and @nielsenko
This was release with update 2.2.0 but its failing when uploading to the app store with this error:
Invalid bundle structure. The “Runner.app/Frameworks/realm.framework/realm_privacy.bundle/realm_privacy” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
Repro steps
Upload to App Store Connect
Version
2.2.0
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
ios
Code snippets
No response
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: