[Project 1 live broadcast]☞1. Create a project and configuration, and broadcast a project
1. Create a project directory
Specify a directory when creating a project. Specify the directory to define your own architecture. The structure is well-defined to facilitate searching.
Create the Classes directory (which contains the custom Classes) and continue to create the directory:
Show: Display Module, mainly responsible for display
Live: playback and Live broadcasting Module
Me: My modules
Launch: playback module
Helper: tool module
Lib (Vendor): a third-party class library
Other: Others (put proxy class, macro)
NetWork (NetManager): a NetWork Tool
Base: Basic module (inherits the basic class to facilitate global settings)
2. Integrate CocoaPods
Cd to the project directory,pod init
Generate a Podfile
Import common third-party libraries:
1. Search for third-party libraries:Pod search 'third-party databases'
2. Copy and import the latest version of commands
Import other third-party libraries in the same way:
Pod 'sdwebimage', '~> 3.8.1'
Pod 'masonry', '~> 1.0.1'
Pod 'yykit', '~> 1.0.7'
............
3. Executepod install
3. Configure the pch File
Configure pch. Otherwise, no other computer can be found.
Search for the Prefix Header under Build Settings and add the path of the. pch file:
Absolute path: $ (SRCROOT)/$ (PRODUCT_NAME)/PrefixHeader. pch
Relative Path: $ (PRODUCT_NAME)/PrefixHeader. pch
Iv. Configuration icon and start page 1. Configure the application icon
2. Configure the startup page
This is a success!
Tip: If the startup image does not appear, check whether the size of a piece is correct. If not, uninstall the APP and run the installation again to see the effect.
5. Set the class name prefix and define common macros 1. Set the prefix of the custom class
2. define common macros