Closed Lerg closed 6 months ago
Try to add #import <YandexMobileAds/YandexMobileAds-Swift.h>
next to your #import YandexMobileAds.h
Try to add
#import <YandexMobileAds/YandexMobileAds-Swift.h>
next to your#import YandexMobileAds.h
Unfortunately the same linking error.
Спасибо за Ваше обращение, для разбора создана задача с номером PCODESUP-2772. Мы ознакомимся и вернемся с ответом в течение 2 дней, возможно запросим дополнительную информацию.
Thank you for your message, a task with the number PCODESUP-2772 has been created for analysis. We will get acquainted and return with the answer within 2 days, we may request additional information.
Can your provide, swift
and Xcode
version and describe your project setup? It would be great, If you could provide a sample project, that reproduces the problem.
Can your provide,
swift
andXcode
version and describe your project setup? It would be great, If you could provide a sample project, that reproduces the problem.
Sure.
Download and install the Defold game engine (free, no account is required) https://defold.com/download/
Download and extract the sample project attached to this message extension-yandexads-6.3.0.zip
Open Defold and open the extracted project (select game.project
file)
In Defold open the game.project
file and set your iOS bundle identifier
Actually it might not be required if you just want to test the compilation.
Select menu Project -> Bundle -> iOS Application, choose your signing identity and provisioning profile and hit Create Bundle
After about 10 minutes of bundling you will see the error message
The relevant source code is in extension-yandexads/src/extension_ios.mm
The Podfile is in extension-yandexads/manifests/ios/
This extension on github but with the 6.1.0 version of the SDK (this one works) https://github.com/Lerg/extension-yandexads
Can you try to check it on the latest version of Defold?
In 6.3.0 the structure (or bundling) of the framework was changed.
Before 6.3.0 the YandexMobileAds.h included everything:
In 6.3.0 the YandexMobileAds.h includes only a small part of the SDK:
Which results in a breaking change, old ObjC projects fail to compile.
Changing
#import <YandexMobileAds/YandexMobileAds.h>
to#import <YandexMobileAds/YandexMobileAds-Swift.h>
doesn't fix the issue. The app fails to link:How to use the framework in an Obj-C app now? (it's an extension for a game engine)