iOS developers - Import static library

Video Player SDK package

  1. Copy the static library to the project:
    Copy the static library to the project
  2. Adding to the project:
    1. Add File to...
      Add File to
    2. 选中Copy items if needed
      选中Copy items if needed
  3. After the import inspection Target -> Build Phases -> Link Binary With Libraries whether the following quote .a static library file, usually automatically added, if not, click the plus sign to add ➕:
    Add a static library reference
  4. CocoaPod use third-party database management, add the following third parties:

    #use_frameworks!
    # SJVideoPlayer
    pod 'SJBaseVideoPlayer/IJKPlayer', '~> 3.0.4'
    pod 'SJVideoPlayer', '~> 3.0.2'
    pod 'SJUIKit', '~> 0.0.0.37'
    Note: Delete or cancel use_frameworks!:
    Delete or cancel use_frameworks
  5. You can now use the SDK to play,
    Play Video
    attention: pause playback or stop playing at the appropriate time.

Note: SDK into Debug with Release version, Debug use when developing, remember to modify the Release version re-released on the line when the line.

Guess you like

Origin www.cnblogs.com/cy521/p/11773500.html