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

Apk release problem: react-native-rabbitmq:verifyReleaseResources #11

Open
qaniqani opened this issue Mar 6, 2019 · 10 comments
Open

Apk release problem: react-native-rabbitmq:verifyReleaseResources #11

qaniqani opened this issue Mar 6, 2019 · 10 comments

Comments

@qaniqani
Copy link

qaniqani commented Mar 6, 2019

I get the following error when I want to deploy the application.
Do you have a solution?

Thanks
resim

@ParryGao
Copy link

Have you solved it ?

@qaniqani
Copy link
Author

android build version was incompatible.
harmonize the main project versions with the build version of the rabbit project.

@qaniqani
Copy link
Author

@allying
Copy link

allying commented Jan 10, 2020

Need to install rabbitmq-objc-client ?

@qaniqani
Copy link
Author

I did not install it for android.

@qaniqani
Copy link
Author

qaniqani commented Jan 18, 2020

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

@qaniqani
Copy link
Author

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.

@volov157
Copy link

volov157 commented Feb 20, 2020

I completed android release apk , you must change these files , then run ./gradlew assembleRelease

change gradle-wapper.properties distributionUrl like u project gradle version
image

change compileSdkVersion buildToolsVersion targetSdkVersion as u version
image

@volov157
Copy link

another question
it also occured errors when I had pod install #28
do u have any ideas?

@Wilson-Lim
Copy link

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"
                }
            }
    }
}

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

5 participants