Skip to content
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

iOS build issues #9

Open
jsaq007 opened this issue Sep 21, 2022 · 3 comments
Open

iOS build issues #9

jsaq007 opened this issue Sep 21, 2022 · 3 comments

Comments

@jsaq007
Copy link

jsaq007 commented Sep 21, 2022

Hi,

There seems to be an issue when building on iOS where I keep getting the issue seen in the image below.

I have tried all methods of installation including auto linking with the same results.

Any assistance would be appreciated.

Thanks Julian

"react": "17.0.2",
"react-native": "0.67.4",

require File.join(File.dirname(node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.0'

target 'feeting' do
use_expo_modules!
post_integrate do |installer|
begin
expo_patch_react_imports!(installer)
rescue => e
Pod::UI.warn e
end
end
config = use_native_modules!

use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change false to true and then install pods
:hermes_enabled => false
)

pod 'Firebase/Analytics'

target 'feetingTests' do
inherit! :complete
# Pods for testing
end

Enables Flipper.

Note that if you have use_frameworks! enabled, Flipper will not work and

you should disable the next line.

use_flipper!()

permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-AppTrackingTransparency', :path => "#{permissions_path}/AppTrackingTransparency"

post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
pod 'RNSelectableText', :path => '../node_modules/@alentoma/react-native-selectable-text/ios/RNSelectableText.podspec'
end
`

Xcode error: Definition of 'RCTTextSelection' must be imported from module 'React.RCTTextSelection' before it is required

Screenshot 2022-09-21 at 11 38 10

@AlenToma
Copy link
Owner

Sadly I am not the author of the library and I do not own an IOS so I cant even test this.

Someone with IOS experience should take this issue

@qduborper
Copy link

Hello @jsaq007 , I had the same issue after enabling static framworks (use_frameworks), and I guess applying this patch could solve your problem:
CoSNaYe@767b590

@AlenToma
Copy link
Owner

I have build another library may be as a replacement.

https://github.com/AlenToma/react-native-text-contextmenu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants