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
Error while uploading to iTunesConnect for beta testing #22
Comments
I found a fix, I set "Always Embed Swift Standard Libraries" to false on both RNTextInputMask and its InputMask dependency, now I can publish to Apple Store without a problem. |
We’re also seeing this, the above works. It seems “Always Embed Swift Standard Libraries” should be set on the app you’re publishing, not the library project. Additionally it should not be set on any app extensions you might have. More info about that error here, although CocoaPods specific: CocoaPods/CocoaPods#4203 The above link also has a bash script you can use as a workaround to delete the extra Frameworks directory during the build so you don’t need to modify InputMask.xcodeproj. Modifications to the project are wiped if you reinstall the module. Here’s the script we’re using, careful with the paths: EXTRA_DIR="${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Frameworks/InputMask.framework/Frameworks"
if [[ -d "${EXTRA_DIR}" ]]; then
rm -rf "${EXTRA_DIR}"
fi |
Setting “Always Embed Swift Standard Libraries” isn't worked for me. I'm still unable to upload my App on Itunes Store. |
Thanks @lnikkila ! |
Hi @lnikkila We have encountered same error. However, we could not manage to solve the issue with the way you suggest. Could you explain further? Thanks! |
See the screenshot below, make sure it’s the last build phase defined in your target. Also make sure “Always embed Swift standard libraries” is enabled in the target’s build settings, but not enabled on any libraries you have (except for InputMask which we’re working around with this script) or any app extension targets you may have. |
The only question is why this is not in the Readme? I spent a hours to find the answer in google. |
I have the same issue. I have fixed it by adding New Run Script Phase into Building Phase(s) with the script provided by @lnikkila |
thank you @lnikkila . it's worked |
- Added upside down orientation for iPad - Added workaround for issue with InputMask: react-native-text-input-mask/react-native-text-input-mask#22
Hi there. I'm no iOS dev so I'm kind of struggling to get this one. Even though I added the script, I still have the frameworks in the binary uploaded to AppStoreConnect. I finally figured out that the script is trying to delete the wrong folder. It's trying to delete
which leaves me puzzled, as I thought that React Native bundling was all done in the In addition, the solution of changing the library is not gonna work for me, as I need all of that to run on our CI. Any ideas, help, lead on how to go past that one? How could I target the Thanks a lot in advance. (Using XCode |
Small update here. I finally managed to fix that on the CI ! (Verifying it now) A bit point that I might have missed was that Also, to disable the
That I run in the |
I don't understand this workaround. One (maybe silly) question: Why don't we unset the flag directly in this repo by modifying the pbxproj files? Is it needed for something? Thank you for explanation. |
Just ran into this today. The suggested fixes are not very good as they need to be re-applied every time we reinstall node_modules (something that happens constantly with react-native). |
Hey @ivanzotov, should close the issue when the pull request gets merged. |
Here's the message while uploading to itunesconnect:
ERROR ITMS-90206: "Invalid Bundle. The bundle at 'myapp.app/Frameworks/InputMask.framework' contains disallowed file 'Frameworks'."
The text was updated successfully, but these errors were encountered: