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

No visible @interface for 'RMQConnection' declares the selector #28

Open
volov157 opened this issue Feb 12, 2020 · 11 comments
Open

No visible @interface for 'RMQConnection' declares the selector #28

volov157 opened this issue Feb 12, 2020 · 11 comments

Comments

@volov157
Copy link

volov157 commented Feb 12, 2020

package.json
...
"dependencies": {
"@react-native-mapbox-gl/maps": "^7.0.10",
"lz-string": "^1.4.4",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-easy-toast": "^1.2.0",
"react-native-rabbitmq": "^0.6.7"
},
...

npm install react-native-rabbitmq --save
cd ./ios
change in the Podfile line 1: platform :ios, '9.0' to platform :ios, '10.0'
pod install

then I opened Xcode and build project was failed, errors:
No visible @interface for 'RMQConnection' declares the selector 'initWithUri:channelMax:frameMax:heartbeat:connectTimeout:readTimeout:writeTimeout:syncTimeout:delegate:delegateQueue:'

what should I do ?

image

@timhonders
Copy link
Contributor

What is the exact version of the rabbitmq pod u installed?

@volov157
Copy link
Author

What is the exact version of the rabbitmq pod u installed?

react-native-rabbitmq : 0.6.7

@timhonders
Copy link
Contributor

Can u show me youre Podfile

@volov157
Copy link
Author

volov157 commented Feb 12, 2020

Can u show me youre Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'ReactNativeDemoProject' do

Pods for ReactNativeDemoProject

pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

target 'ReactNativeDemoProjectTests' do
inherit! :search_paths
# Pods for testing
end

use_native_modules!
end

target 'ReactNativeDemoProject-tvOS' do

Pods for ReactNativeDemoProject-tvOS

target 'ReactNativeDemoProject-tvOSTests' do
inherit! :search_paths
# Pods for testing
end

end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
end
end
end

@volov157
Copy link
Author

image
image

@volov157
Copy link
Author

Can u show me youre Podfile

u can see my print screen , without github markdown style

@timhonders
Copy link
Contributor

Can u add pod 'RMQClient', :git => 'https://github.com/rabbitmq/rabbitmq-objc-client.git' in the pod file and install

@volov157
Copy link
Author

Can u add pod 'RMQClient', :git => 'https://github.com/rabbitmq/rabbitmq-objc-client.git' in the pod file and install

image
image

I add podfile (line 39) and install , and open project with xcode , clean project then build it , errors:
12 duplicate symbols for architecture x86_64

@volov157
Copy link
Author

my RN version is 0.61.5 > 0.60
when I added pod 'RMQClient', :git => 'https://github.com/rabbitmq/rabbitmq-objc-client.git' in the pod file and install xocde show 12 duplicate symbols

@toanhosss
Copy link

package.json
...
"dependencies": {
"@react-native-mapbox-gl/maps": "^7.0.10",
"lz-string": "^1.4.4",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-easy-toast": "^1.2.0",
"react-native-rabbitmq": "^0.6.7"
},
...

npm install react-native-rabbitmq --save
cd ./ios
change in the Podfile line 1: platform :ios, '9.0' to platform :ios, '10.0'
pod install

then I opened Xcode and build project was failed, errors:
No visible @interface for 'RMQConnection' declares the selector 'initWithUri:channelMax:frameMax💓connectTimeout:readTimeout:writeTimeout:syncTimeout:delegate:delegateQueue:'

what should I do ?

image

Because In RMQConnection.h from Podfile don't have param connectionTimeout and readTimeout, so it throw error

How we can solve it?

@PrayaAmadigaPitasa
Copy link

PrayaAmadigaPitasa commented Jun 29, 2020

remove connectionTimeout, readTimeout and writeTimeout.
this is because RMQConnection constructor/initializer doesn't have these param

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

4 participants