Open qaniqani opened 5 years ago
Have you solved it ?
android build version was incompatible. harmonize the main project versions with the build version of the rabbit project.
check this address https://github.com/rabbitmq/rabbitmq-objc-client/issues
Need to install rabbitmq-objc-client ?
I did not install it for android.
POD file:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
#plugin 'cocoapods-fix-react-native'
target 'projectname' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# Pods for projectname
# rn_path = '../node_modules/react-native'
# rn_maps_path = '../node_modules/react-native-maps'
# pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
# pod 'React', path: rn_path, subspecs: [
# 'Core',
# 'CxxBridge',
# 'DevSupport',
# 'RCTActionSheet',
# 'RCTAnimation',
# 'RCTGeolocation',
# 'RCTImage',
# 'RCTLinkingIOS',
# 'RCTNetwork',
# 'RCTSettings',
# 'RCTText',
# 'RCTVibration',
# 'RCTWebSocket',
# ]
# pod 'DoubleConversion', :podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec"
# pod 'glog', :podspec => "#{rn_path}/third-party-podspecs/glog.podspec"
# If you are using React Native <0.54, you will get the following error:
# "The name of the given podspec `GLog` doesn't match the expected one `glog`"
# Use the following line instead:
#pod 'GLog', :podspec => "#{rn_path}/third-party-podspecs/GLog.podspec"
# pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"
#pod 'boost-for-react-native'
#pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
# pod 'react-native-maps', path: rn_maps_path
# pod 'react-native-google-maps', path: rn_maps_path # Remove this line if you don't want to support GoogleMaps on iOS
use_frameworks!
pod 'CocoaAsyncSocket'
pod 'RMQClient', '~> 0.10.0'
pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'
pod 'react-native-fbsdk', :path => '../node_modules/react-native-fbsdk'
end
pre_install do |installer|
# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "react-native-google-maps"
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == "React"
target.remove_from_project
end
end
end
There is also an error in the codes in RMQClient. You have to find the relevant lines and correct the methods, or you have to adjust the overload by yourself. But I must provide additional information: I could not run the RabbitMq class stably in IOS. Although I have been struggling for 2 months, I could not provide a solution. If RabbitMq is too big for your business, I definitely recommend using SocketIO or SocketCluster. I regretted dealing with RabbitMQ.
I completed android release apk , you must change these files , then run ./gradlew assembleRelease
change gradle-wapper.properties distributionUrl like u project gradle version
change compileSdkVersion buildToolsVersion targetSdkVersion as u version
another question
it also occured errors when I had pod install #28
do u have any ideas?
The package is using old android build tool
i used this to solve, add this to your build.gradle
subprojects {
afterEvaluate {
project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion = 28
buildToolsVersion = "28.0.3"
}
}
}
}
I get the following error when I want to deploy the application. Do you have a solution?
Thanks