Menu

FAQ and error codes

For reference on TopOn SDK error codes and FAQ guidelines:

System Platform Description
TopOn Android SDK View
TopOn iOS SDK View

Q: When running pod install to install third-party library dependencies, the error shown in the image occurs. How to resolve it?

A: From the blue underlined part, we can see that this error is caused by an exception in linking the static library. Add s.static_framework = true to the downloaded resource file anythink_sdk.podspec, as shown in the image.

Q: How to use the simulator to run and load ads?

A: Under normal circumstances, we do not recommend using the simulator to load ads because the ad fill rate will be reduced. If it is absolutely necessary to use the simulator, we recommend integrating via CocoaPods and then adding the following code configuration to the Podfile in the Xcode project:

ruby Copy
installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end

Run pod install again to update the dependent libraries, then configure arm64 in TARGET —— Build Settings —— Excluded Architectures.

After completing the above steps, you can try running it on the simulator. If you have any other questions, please contact us.

Previous
Callback information
Next
Cocos Creator Guide
Last modified: 2026-01-07Powered by