-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Expo document-picker doesn't work with use_frameworks #19105
Comments
the same issue.
|
+1 We are experiencing the exact same issue except that we don't have document picker installed. It must be another expo or react-native library causing the issue. Build works fine on iOS 14,15,16 but fails to launch on iOS 13. Any suggestions to check if a library is related to "/System/Library/Frameworks/UniformTypeIdentifiers.framework/UniformTypeIdentifiers" ? |
Manually add UniformTypeIdentifiers.framework to solve this problem. const plugs = require('expo/config-plugins');
module.exports = function withUniformTypeIdentifiers(c) {
return plugs.withXcodeProject(c, (config) => {
const target = plugs.IOSConfig.XcodeUtils.getApplicationNativeTarget({
project: config.modResults,
projectName: config.modRequest.projectName,
});
config.modResults.addFramework("UniformTypeIdentifiers.framework", { target: target.uuid, weak: true });
return config;
});
} |
I can't reproduce this with Expo 48 & Xcode 14.2 anymore. However I'm not sure what the fix is. |
Just leaving my experience here in case anyone finds it helpful; Xcode 14.2 and Expo 48 did not solve the issue for me, but @Mfweb 's patch works. |
@Mfweb plugin works. Thank you! |
Thank you for filing this issue! |
I'm facing the same issue. Could you please explain how to set this up? Haven't been able to get it working for me
|
For more information, check here: |
@Mfweb This doesn't seem to work for me. The issue I'm having is setting Also wanted to add that this is only seen in the production build, not development. |
Summary
On iOS when using
use_frameworks
(static or dynamic) in the pod file with expo document-picker on iOS v13.7 or older the app will crash on startup with the below stacktrace:Combination which causes the crash:
"ios.useFrameworks": "static"
or"ios.useFrameworks": "dynamic"
I think it's related to the
__IPHONE_OS_VERSION_MAX_ALLOWED
check not working, but not sure -expo/packages/expo-document-picker/ios/EXDocumentPicker/EXDocumentPickerModule.m
Line 11 in 1188de0
What platform(s) does this occur on?
iOS
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 12.5.1
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.20.0 - ~/.nvm/versions/node/v14.20.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v14.20.0/bin/yarn
npm: 6.14.17 - ~/.nvm/versions/node/v14.20.0/bin/npm
Watchman: 2022.09.12.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /Users/andrew/.rvm/gems/ruby-2.7.4/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 29, 30, 31, 32
Build Tools: 28.0.3, 29.0.2, 30.0.2, 33.0.0
System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
npmPackages:
expo: ~46.0.9 => 46.0.10
react: 18.0.0 => 18.0.0
react-dom: 18.0.0 => 18.0.0
react-native: 0.69.5 => 0.69.5
react-native-web: ~0.18.7 => 0.18.9
Expo Workflow: bare
Minimal reproducible example
yarn install
npx pod-install
Expected: app runs without crashing
Actual: App crashes on launch with the error above.
The text was updated successfully, but these errors were encountered: