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

When using Cocopods add AppLovinMediationByteDanceAdapter encounters an error #203

Open
Kejiasir opened this issue Feb 22, 2023 · 12 comments
Labels
bug Something isn't working stale This isue has been inactive

Comments

@Kejiasir
Copy link

MAX SDK Version

11.7.1

Device/Platform Info

all

Current Behavior

pod install

Analyzing dependencies
Downloading dependencies
Installing Ads-CN (4.9.0.7)
Installing Ads-Global (4.8.1.0)
Installing AppLovinMediationByteDanceAdapter (4.8.1.0.3)
Installing AppLovinSDK (11.7.1)
Installing BUAdSDK (0.1.0.26)
Installing BURelyFoundation (0.0.3.21)
Installing BURelyFoundation_Global (0.0.3.24)
Installing OneKit-Pangle (1.3.11)
Installing RARegisterKit-Pangle (0.0.7)
Installing RangersAPM-Pangle (3.0.2)
Generating Pods project

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.11.3
        Ruby : ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin22]
    RubyGems : 3.4.2
        Host : macOS 13.0.1 (22A400)
       Xcode : 14.2 (14C18)
         Git : git version 2.37.1 (Apple Git-137.1)
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.2.0/lib
Repositories : SGPrivatePods - git - [email protected]:630b1207050e9c4a07a93a48/IOS/SGPrivatePods.git @ c728b837df85d0ef1eb5637f7e1f6c3a4eb77480

               trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'TestDemo' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  
  pod 'AppLovinSDK'
  #  pod 'AppLovinMediationAdColonyAdapter'
  #  pod 'AppLovinMediationChartboostAdapter'
  #  pod 'AppLovinMediationMintegralAdapter'
  pod 'AppLovinMediationByteDanceAdapter'
  #  pod 'AppLovinMediationGoogleAdapter'
  
end

Error

NoMethodError - undefined method `=~' for ["-fno-c++-static-destructors", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables"]:Array
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:446:in `block (2 levels) in merged_xcconfigs'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:446:in `all?'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:446:in `block in merged_xcconfigs'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:444:in `each'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:444:in `each_with_object'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:444:in `merged_xcconfigs'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:1057:in `block in <class:PodTargetSettings>'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:120:in `block in define_build_settings_method'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:588:in `block in <class:PodTargetSettings>'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:120:in `block in define_build_settings_method'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:204:in `save_as'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/target_installer_helper.rb:24:in `update_changed_file'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:641:in `block in create_xcconfig_file'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:639:in `each'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:639:in `create_xcconfig_file'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:71:in `block in install!'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:40:in `install!'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:115:in `block in install_pod_targets'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:112:in `map'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:112:in `install_pod_targets'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:32:in `block in install_all_pod_targets'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:31:in `install_all_pod_targets'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:19:in `generate!'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:314:in `block in create_and_save_projects'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:309:in `create_and_save_projects'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:301:in `generate_pods_project'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:180:in `integrate'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:167:in `install!'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/bin/pod:25:in `load'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/bin/pod:25:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%60%3D~%27+for+%5B%22-fno-c%2B%2B-static-destructors%22%2C+%22-fno-unwind-tables%22%2C+%22-fno-asynchronous-unwind-tables%22%5D%3AArray&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

Expected Behavior

No response

How to Reproduce

pod install or update

Additional Info

No response

@Kejiasir Kejiasir added the bug Something isn't working label Feb 22, 2023
@thomasmso
Copy link
Member

Could you try updating to the lates version of CocoaPods and Ruby? For instance, I am on:

thomasso@Thomas-So-MacBookPro ~> pod --version
1.11.3
thomasso@Thomas-So-MacBookPro ~> ruby --version
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]

@dshestel
Copy link

Hello!
I have the same issue.
Updating to the latest version does not help

dmitrys-macbook-pro:mine-master dshestel$ pod --version
1.12.0
dmitrys-macbook-pro:mine-master dshestel$ ruby --version
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin22]

@thomasmso
Copy link
Member

@dshestel - Could you ensure that you are on Xcode 14.1+?

@dshestel
Copy link

@dshestel - Could you ensure that you are on Xcode 14.1+?

yes, Xcode version 14.3

@Vedant-Mehta39
Copy link
Contributor

@dshestel Can you try explicitly updating to the latest version of the AppLovinMediationByteDanceAdapter (5.1.0.8.0) like this?

pod 'AppLovinMediationByteDanceAdapter' , '5.1.0.8.0'

@Vedant-Mehta39
Copy link
Contributor

Actually, it might be an issue with Gems 3.2.0. It seems to have deprecated some methods. You might have to downgrade it. See this issue for reference -> CocoaPods/CocoaPods#11788 (comment)

@dshestel
Copy link

@dshestel Can you try explicitly updating to the latest version of the AppLovinMediationByteDanceAdapter (5.1.0.8.0) like this?

pod 'AppLovinMediationByteDanceAdapter' , '5.1.0.8.0'

Got this error.

[!] Unknown command: AppLovinMediationByteDanceAdapter`
Did you mean: deintegrate?

Usage:

$ pod COMMAND

  CocoaPods, the Cocoa library package manager.

Commands:

+ cache         Manipulate the CocoaPods cache
+ deintegrate   Deintegrate CocoaPods from your project
+ env           Display pod environment
+ init          Generate a Podfile for the current directory
+ install       Install project dependencies according to versions from a
                Podfile.lock
+ ipc           Inter-process communication
+ lib           Develop pods
+ list          List pods
+ outdated      Show outdated project dependencies
+ plugins       Show available CocoaPods plugins
+ repo          Manage spec-repositories
+ search        Search for pods
+ setup         Set up the CocoaPods environment
+ spec          Manage pod specs
+ trunk         Interact with the CocoaPods API (e.g. publishing new specs)
+ try           Try a Pod!
+ update        Update outdated project dependencies and create new Podfile.lock

Options:

--allow-root    Allows CocoaPods to run as root
--silent        Show nothing
--version       Show the version of the tool
--verbose       Show more debugging information
--no-ansi       Show output without ANSI codes
--help          Show help banner of specified command`

@Vedant-Mehta39
Copy link
Contributor

@dshestel The error seems to be thrown when you run that line as a command in the terminal. Can you instead update your Podfile with that line?

So instead of having pod 'AppLovinMediationByteDanceAdapter' in the Podfile, you will have this line

pod 'AppLovinMediationByteDanceAdapter', '5.1.0.8.0'

@dshestel
Copy link

dshestel commented Apr 20, 2023

@Vedant-Mehta39 did not help

`
Analyzing dependencies
Downloading dependencies
Installing Ads-Global (5.1.0.8)
Installing AppLovinMediationByteDanceAdapter (5.1.0.8.0)

[!] Error installing AppLovinMediationByteDanceAdapter
[!] /usr/bin/curl -f -L -o /var/folders/g8/_2t_5l5s4k50q20d4tjj0rfm0000gn/T/d20230420-67404-1ll3sd/file.zip https://artifacts.applovin.com/ios/com/applovin/mediation/bytedance-adapter/AppLovinMediationByteDanceAdapter-5.1.0.8.0.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.12.1 cocoapods-downloader/1.6.3'

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: artifacts.applovin.com
Warning: Problem : timeout. Will retry in 1 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: artifacts.applovin.com
Warning: Problem : timeout. Will retry in 2 seconds. 1 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: artifacts.applovin.com
`

@tGulevich
Copy link

Also have errors after install pod AppLovinMediationByteDanceAdapter, even with specifying version (5.1.0.8.0)

@Vedant-Mehta39
Copy link
Contributor

Vedant-Mehta39 commented Jun 21, 2023

@tGulevich What error are you seeing? Can you provide a log of those errors?

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale This isue has been inactive label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale This isue has been inactive
Projects
None yet
Development

No branches or pull requests

5 participants