AppLovin / AppLovin-MAX-SDK-iOS

Other
91 stars 72 forks source link

AppLovinMediationIronSourceAdapter & AppLovinMediationTapjoyAdapter not build on iOS 15.5 Simulator with Chip: Apple M1 #153

Open AnyMindG opened 2 years ago

AnyMindG commented 2 years ago

MAX SDK Version

11.4.4

Device/Platform Info

iOS 15

Current Behavior

Install adapter through pod file.

pod 'AppLovinMediationIronSourceAdapter' pod 'AppLovinMediationTapjoyAdapter'

===========================================

Build failed on iOS 15.5 Simulator

Tapjoy adapter:

in /Users/narender/Documents/R&D/AppLovinAnyManagerSDK-POC/AppLovinAnyManagerDemo/Pods/AppLovinMediationTapjoyAdapter/AppLovinMediationTapjoyAdapter-12.10.0.1/AppLovinMediationTapjoyAdapter.framework/AppLovinMediationTapjoyAdapter(ALTapjoyMediationAdapter.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/narender/Documents/R&D/AppLovinAnyManagerSDK-POC/AppLovinAnyManagerDemo/Pods/AppLovinMediationTapjoyAdapter/AppLovinMediationTapjoyAdapter-12.10.0.1/AppLovinMediationTapjoyAdapter.framework/AppLovinMediationTapjoyAdapter' for architecture arm64

IronSource Adapter

Undefined symbol: _OBJCCLASS$_IronSource

ld: warning: ignoring file /Users/narender/Library/Developer/Xcode/DerivedData/AppLovinAnyManagerDemo-fcsmxgcgclszynhdmddtqetoagfg/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/IronSourceSDK/IronSource.framework/IronSource, file is universal (i386,x86_64) but does not contain the arm64 architecture: /Users/narender/Library/Developer/Xcode/DerivedData/AppLovinAnyManagerDemo-fcsmxgcgclszynhdmddtqetoagfg/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/IronSourceSDK/IronSource.framework/IronSource Undefined symbols for architecture arm64: "_OBJCCLASS$_IronSource", referenced from: objc-class-ref in libIronSourceAdapter.a(ALIronSourceMediationAdapter.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Expected Behavior

successfully build on the iOS 15.5 simulator.

How to Reproduce

Reproduce: - Build (command + B) the project on iOS 15.5 Simulator with xcode.

Additional Info

No response

AnyMindG commented 2 years ago

AppLovin/MAX team,

Please can you look into this issues.

harryarakkal commented 2 years ago

Hi @AnyMindG, the issue with IronSource is that their SDK does not support the simulator for M1 macs. You will have to raise the issue with them.

Could you try building without IronSource's adapter? Tapjoy should work fine on M1.

AnyMindG commented 2 years ago

@harryarakkal Thanks for reply.

The Tapjoy SDK is working fine on Mac M1 chip, but with Tapjoy adapter (AppLovinMediationTapjoyAdapter) is not working.

I also tried without IronSource's adapter, but it's not working for me on mac M1 chip.

AnyMindG commented 2 years ago

@harryarakkal One More Issue with Applovin Max:

I have set up IronSource as an ad network on the MAX Mediation platform, but it is not working for me every time I get the same error message.

Error [MAError: code=-5001, message=MAX returned eligible ads from mediated networks, but all ads failed to load. Inspect -[MAError waterfall] for more info.

I have used the right APP KEY and Instance IDs on the AppLovin MAX dashboard.

I received this response in the Xcode debugging logs, but I'm a little bit surprised that the app_key in the logs is not my app_key . This key does not belong to my IronSource account.

DEBUG [ALConnectionManager] 200 received from #10457349758677966152 "ms4.applovin.com/1.0/mediate": {"status":200,"event_id":"c4e0ce9afe1ef8be5f539873de2ee54da4582c28","ad_unit_id":"502fab07f7a232f3","ad_format":"INTER","waterfall_name":"Default Waterfall","waterfall_test_name":"Control","ads":[{"name":"IRONSOURCE_NETWORK","network_name":"IronSource","type":"adapter","third_party_ad_placement_id":"0","class":"ALIronSourceMediationAdapter","adapter_timeout_ms":15000,"bcode":"2!v3!200000.1664261333280!Gn8MCjkXjYjPZFAvMNtdQO_fAHzQ10XRZzNTGzxP0RoCKsJk5l3QGyRW-mVo7qvwx4-dhD7iqOGwWnFdX8kxSs9b107rN_n1seSbyKszbxhZqY5k3lFncETdD_i8s4LE","server_parameters":{"app_key":"8c2579f5"},"is_testing":true,"ad_refresh_ms":15000,"ad_expiration_ms":14400000,"ad_values":{"network_placement":"0"},"revenue_parameters":{"revenue_event":"cimp","precision":"publisher_defined","revenue":0.0}}],"settings":{"ad_load_failure_refresh_ignore_error_codes":"","ad_load_failure_refresh_ms":30000,"ad_refresh_ms":30000,"ad_view_block_publisher_load_if_refresh_scheduled":true,"ad_view_refresh_precache_request_delay_ms":2000,"adserver_endpoint":"https://a4.applovin.com/","alfdcs":0,"avrrpsoar":true,"avrrpsofad":true,"cfs":true,"cmi":true,"config_consent_dialog_state":"does_not_apply","config_should_show_dialog":false,"country_code":"IN","crat":true,"device_id":"10badd1d91750d38fe","fdq":true,"fetch_basic_settings_connection_timeout_ms":10000,"fetch_mediated_ad_gzip":true,"fetch_next_ad_timeout_ms":30000,"fullscreen_ads_block_publisher_load_if_another_showing":true,"fullscreen_display_delay_ms":100,"icd":true,"init_adapter_for_al":true,"init_adapter_for_sc":true,"max_postback_attempts":3,"max_postback_gzip":true,"max_signal_provider_latency_ms":20000,"mediation_endpoint":"https://ms4.applovin.com/","mra":-1,"mra_af":"INTER,REWARDED,REWARDED_INTER,BANNER,LEADER,MREC","pmp":true,"qq":true,"qq1":true,"qq2":true,"qq3":true,"refresh_ad_view_timer_responds_to_background":true,"refresh_ad_view_timer_responds_to_store_kit":true,"saf":"","sai":false,"sc2":"GwB2AAA=","sksteicf":false},"huc":true,"aru":false,"is_testing":true,"mcode":"2!v3!200000.1664261333280!2FKpB36_yGi-gUgGQADax6Ns5eu7CfYpLVO_aUPwcc3S4NcAFoiaGHyxMQYfhZUPZ2Antm2qnRJrs3O2lEl1tVQGPO-d8reAqF4oss5neRhaAwgrh_8f2l5nUWEJpcVm_H4fI3lE7TFcLUDSx7hBxl2l1x_Cp4rY2OmbLJP0ZSMFJvoxKn08t_U2bzERATae-lPZKa5SRTXLmBTNHISJu0KtAefd6KyXpvWeAsmRNtJjWxggFSQrLV2x_YbjWdYVGtXexj3vF9uZRkDX1l_oHQfmMCRlr0Qootbrcs9ACO1hUfsBAiR8h4a72cWE5pQiplgyFzGzE9kNC4qJEISoaR2GqNiBMfRX_NAoLx2vdNKgdNVs563bbyae2wOMVCBGFGHuBVopKyZMIISj0heGMcyhMGPEHRyNp3y513LkrAx5UVh5hmPzGctpDFw0MdeLE0u99C9JGgL3qxsD9iXqBaghpcOq149LOiM85xTvwO_g-_BpcItVYyVEVxtCr2gYd9b0LX2wY99D4KI5P1U0si_9nq2nSPpCzScdKsqJaFtFhzNw6dMa7ybjhxHcaX2I","mimp_urls":["https://prod-ms.applovin.com/1.0/event/mimp?id=c4e0ce9afe1ef8be5f539873de2ee54da4582c28&mcode={MCODE}&bcode={BCODE}&creative_id={CREATIVE_ID}&custom_data={CUSTOM_DATA}&placement={PLACEMENT}&cuid={CUID}&time_to_show_ms={TIME_TO_SHOW_MS}"],"mvimp_urls":["https://prod-ms.applovin.com/1.0/event/vimp?id=c4e0ce9afe1ef8be5f539873de2ee54da4582c28&mcode={MCODE}&bcode={BCODE}&creative_id={CREATIVE_ID}&custom_data={CUSTOM_DATA}&viewability_flags={VIEWABILITY_FLAGS}&placement={PLACEMENT}&cuid={CUID}"],"mierr_urls":["https://prod-ms.applovin.com/1.0/event/ierr?id=c4e0ce9afe1ef8be5f539873de2ee54da4582c28&mcode={MCODE}&bcode={BCODE}&creative_id={CREATIVE_ID}&custom_data={CUSTOM_DATA}&error_code={ERROR_CODE}&error_message={ERROR_MESSAGE}&third_party_sdk_error_code={THIRD_PARTY_SDK_ERROR_CODE}&third_party_sdk_error_message={THIRD_PARTY_SDK_ERROR_MESSAGE}"],"mcimp_urls":["https://prod-ms.applovin.com/1.0/event/cimp?id=c4e0ce9afe1ef8be5f539873de2ee54da4582c28&mcode={MCODE}&bcode={BCODE}&creative_id={CREATIVE_ID}&custom_data={CUSTOM_DATA}&placement={PLACEMENT}&cuid={CUID}"],"mclick_urls":["https://prod-ms.applovin.com/1.0/event/mclk?id=c4e0ce9afe1ef8be5f539873de2ee54da4582c28&mcode={MCODE}&bcode={BCODE}&creative_id={CREATIVE_ID}&custom_data={CUSTOM_DATA}&placement={PLACEMENT}&cuid={CUID}"],"load_urls":["https://prod-ms.applovin.com/1.0/event/load?id=c4e0ce9afe1ef8be5f539873de2ee54da4582c28&mcode={MCODE}&bcode={BCODE}&load_time_ms={LOAD_TIME_MS}"],"mlerr_urls":["https://prod-ms.applovin.com/1.0/event/lerr?id=c4e0ce9afe1ef8be5f539873de2ee54da4582c28&mcode={MCODE}&bcode={BCODE}&load_time_ms={LOAD_TIME_MS}&error_code={ERROR_CODE}&error_message={ERROR_MESSAGE}&third_party_sdk_error_code={THIRD_PARTY_SDK_ERROR_CODE}&third_party_sdk_error_message={THIRD_PARTY_SDK_ERROR_MESSAGE}&au=1456"]}

[ALCommunicatorService] Sending "max_ad_events" message: { "ad_format" = INTER; id = c4e0ce9afe1ef8be5f539873de2ee54da4582c28; "max_ad_unit_id" = 502fab07f..........; "network_name" = "IRONSOURCE_NETWORK"; "network_placement" = 0; "third_party_ad_placement_id" = 0; type = "WILL_LOAD"; }

[AppLovinSdk] INFO [ALIronSourceMediationAdapterRouter] Interstitial failed to load with error: [MAError: code=-5200, message=Unspecified Error, mediatedNetworkErrorCode=527, mediatedNetworkErrorMessage=The requested instance does not exist]

I am testing with Rosetta on Xcode 13.4.1 with the mac M1 chip. 

Screenshot 2022-09-27 at 10 37 25 AM
AnyMindG commented 2 years ago

I have set up FAN and Admob as an ad networks on the MAX Mediation platform, not getting any ads for Native ad format.

Same for iOS and Android

NO FILL received: ..ID: "54e24cf2d6b5d189" ..FORMAT: "NATIVE" ..SDK KEY: "QyQqxR9HxPHfR........" ..PACKAGE NAME: "com.test.demo" ..Reason: ( { code = 2051; msg = "Please set test mode for guaranteed fill"; }, { code = 1000; msg = "Ad network does not match filter ad networks list"; } )

harryarakkal commented 2 years ago

I have pushed a new Tapjoy adapter that should resolve the issue. Please try out the latest Tapjoy adapter. If you are running the simulator, the SDK will be in test mode, so the credentials like app_key will be the test mode credentials.