1.xcode12默認是創建的工程是14.2,所以需要修改一下工程版本。點擊項目最上面的藍色文件就可以打開下面的界面了。
2.安裝app之後,界面黑屏。
解決方法如下:
在AppDelegate.h中:
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
//增加以下這行代碼
@property (strong,nonatomic) UIWindow *window; //解決低版本黑屏問題
@end