Post not yet marked as solved
Post marked as unsolved with 0 replies, 523 views
Good day. I am currently experiencing issues gaining access to the iOS Media-Library to save files. In my react-native app I use the RNPermissions (react-native-permissions) library to set up permissions. I have followed all the steps from the documentation but had no success.
I will attach a screenshot of the error below.
My PodFile:
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../mobile_sdk/SalesforceMobileSDK-iOS/mobilesdk_pods'
platform :ios, '13.0'
use_frameworks!
pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')
def pod.build_type;
Pod::BuildType.static_library # I assume you use CocoaPods >= 1.9
end
end
end
end
project 'myfinglobal.xcodeproj'
target 'myfinglobal' do
source 'https://cdn.cocoapods.org/'
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
use_mobile_sdk!(:path => '../mobile_sdk/SalesforceMobileSDK-iOS')
pod 'SalesforceReact', :path => '../node_modules/react-native-force'
pod 'React' , :path => '../node_modules/react-native/'
pod 'React-cxxreact' , :path => '../node_modules/react-native/ReactCommon/cxxreact'
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "../node_modules/react-native-permissions/ios/Camera/Permission-Camera.podspec"
end
# To avoid Xcode 12 compilation errors in RNScreens and RNCMaskedView
pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name.eql?('RNScreens') || pod.name.eql?('RNCMaskedView')
def pod.build_type
Pod::BuildType.static_library
end
end
end
end
# Comment the following if you do not want the SDK to emit signpost events for instrumentation. Signposts are enabled for non release version of the app.
post_install do |installer|
signposts_post_install(installer)
end```