English
Log In
You can then view all documents
Installation/iOS/Xcode settings
Xcode settings
Last updated 2024-04-12 10:58:28

Xcode settings

Operating environment configuration

-Support system iOS 9.X and above;
-SDK compilation environment Xcode 11.6;
-Support architecture: x86-64, armv7, arm64, i386

Add permissions

-Project plist file settings, click the "+" behind the information Property List on the right to expand
To add App Transport Security Settings, first click the expand arrow on the left, and then click the plus sign on the right, the Allow Arbitrary Loads option is automatically added, and the modified value is YES. The SDK API has all supported HTTPS, but the advertiser material has non-HTTPS conditions.

复制

The specific operation is shown in the figure:

555555.webp


Add parameters -ObjC, -l"c++", -l"c++abi", -l"sqlite3", -l"z" to Other Linker Flags in Build Settings, SDK also supports -all_load
The specific operation is shown in the figure:

6666666.jpeg

Configuration instructions for iOS17 privacy manifests

Instructions

  • In versions 6012 and above, we have added the PrivacyInfo.xcprivacy file, which is located in the CSJAdSDK.bundle of the static library product.
  • You can use cocoapods to integrate, manual integration or SPM integration. No matter which method is used, it can be found in CSJAdSDK.bundle->PrivacyInfo.xcprivacy of the xcode project. Please be sure to copy PrivacyInfo.xcprivacy into your code project.
  • If your App itself contains the PrivacyInfo.xcprivacy file, please complete the terms in CSJ's PrivacyInfo.xcprivacy to your own PrivacyInfo.xcprivacy. The specific completion method is as follows:
    • Add using source code:
      • Use the Source Code method in Xcode to open PrivacyInfo.xcprivacy under the app project. Copy the entries in CSJ's PrivacyInfo.xcprivacy, being careful not to add duplicates or wrong lines.
      • Add using Property List:
        • Double-click to open the PrivacyInfo.xcprivacy file in Xcode and click + in it. Xcode will prompt you with optional terms and configurable items. Just add them as needed.
  • If your project integrates multiple SDKs containing PrivacyInfo.xcprivacy at the same time, it is recommended that you add the terms of all SDKs to PrivacyInfo.xcprivacy of your own App. When supplementing, there is no need to add repeated statements and explanations for the same API.

PrivacyInfo.xcprivacy for Ads-CN

复制

About iOS 14 AppTrackingTransparency

On iOS 14 devices, CSJ recommends that you call the AppTrackingTransparency solution provided by apple when the app is launched to obtain the user’s IDFA authorization, so that CSJ can provide more accurate advertising and revenue optimization

复制

Calling method of permission request window: requestTrackingAuthorization(completionHandler:)

Add dependency library

The project needs to find Link Binary With Libraries in TARGETS -> Build Phases, click "+", and add the following dependent libraries in turn
-Accelerate.framework
-AdSupport.framework
-AudioToolbox.framework
-AVFoundation.framework
-CoreGraphics.framework
-CoreImage.framework
-CoreLocation.framework
-CoreMedia.framework
-CoreMotion.framework
-CoreTelephony.framework
-CoreText.framework
-ImageIO.framework
-JavaScriptCore.framework
-MapKit.framework
-MediaPlayer.framework
-MobileCoreServices.framework
-QuartzCore.framework
-Security.framework
-StoreKit.framework
-SystemConfiguration.framework
-UIKit.framework
-WebKit.framework
-libbz2.tbd
-libc++.tbd
-libiconv.tbd
-libresolv.9.tbd
-libsqlite3.tbd
-libxml2.tbd
-libz.tbd
-libc++abi.tbd
The specific operation is shown in the figure:

7777777.webp

iOS localization\internationalization configuration

Note: The developer must set the supported language here, otherwise there will be language display problems.
For example: Support Chinese Add Chinese

88888.webp


Contents
Contact us