For TopOn SDK error codes and FAQ guidelines, please refer to:
System platform | Description |
---|---|
TopOn Android SDK | View |
TopOn iOS SDK | View |
Question: When pod install relies on third-party libraries, an error as shown in the picture appears. How to solve it?
Answer: You can learn this error from the blue underlined part It is caused by an exception in linking the static library. Add s.static_framework = true to the resource file anythink_sdk.podspec we downloaded, as shown in the figure
Q: How to use the emulator to run loading ads?
Answer: Under normal circumstances, we do not recommend using the simulator to load ads, because the fill rate of ads becomes low. If you really need to use it, we recommend using CocoaPods to access it. Then add code configuration in the Podfile in the Xcode project:
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
Use pod install to re-update the dependent libraries, and then configure arm64 in TARGET - Build Settings - Excluded Architectures
After completing the above steps, you can try to run it using the emulator. If you have any other questions, please contact us.