Unity reports an error when accessing pangolin ads. You need to replace the BUAdSDK.bundle file with the xxx version

Today, I encountered some errors when upgrading pangolin ads. The version of the Unity SDK used is V4.3.0.1, and the version of the iOS SDK is 4.3.0.3. The manual access method is used.

There are two errors when compiling:

BUToUnitySplashAd.mm

 slot.splashButtonType = adSlot->splashButtonType == 2 ? BUSplashButtonType_DownloadBar:BUSplashButtonType_FullScreen;;

BUToUnityExpressSplashAd.mm 

  slot.splashButtonType = adSlot->splashButtonType == 2 ? BUSplashButtonType_DownloadBar:BUSplashButtonType_FullScreen;

It should be caused by the inconsistent interface between unity sdk and ios sdk. Deleting the above two lines of code can compile normally

The compilation is successful and Crash is run, and the following error occurs:


Terminating app due to uncaught exception 'BUAdSDK.bundle Warning', reason: 'You need to replace the BUAdSDK.bundle file with the 4.3.0.3 version '

It is suspected that the problem is caused by inconsistent sdk versions. Go to the official group to ask for the download address of the historical version, the official customer service did not give it, and the reply said please use the latest version. After feedback on the problem, the solution provided by the other party is to clean the project and then re-import BUAdSDK.bundle.

Checked the Frameworks/UnionPlatform/Plugins/iOS folder of the Xcode project and found that BUAdSDK.bundle did not import this file. So manually copied to this folder, and added to the project, after which it can be successfully run.

So the question is, why this file is not successfully imported into the Xcode project.

 Click on BUAdSDK.bundle in Unity to view the Inspector. Inspector shows blank, re-import, and found that other Editor scripts reported errors. After processing, import again, the Inspector displays normally, and finds that Select platforms for plugin does not select the iOS platform. After selecting the iOS platform, export the project again, and it can run normally.

Guess you like

Origin blog.csdn.net/shaobing32/article/details/123357635