工作项目遇到的一些问题

1. Command CopyPNGFile failed with a nonzero exit code

   最近升级xcode之后出现的新问题 (xcode12.5)

Can't exec "xcrun": No such file or directory at /Applications/Xcode.app/Contents/Developer/usr/bin/copypng line 17.
Use of uninitialized value $PNGCRUSH in scalar chomp at /Applications/Xcode.app/Contents/Developer/usr/bin/copypng line 18.
sh: dirname: command not found
Use of uninitialized value $args[0] in system at /Applications/Xcode.app/Contents/Developer/usr/bin/copypng line 89.
Can't exec "": No such file or directory at /Applications/Xcode.app/Contents/Developer/usr/bin/copypng line 89.
Use of uninitialized value $args[0] in join or string at /Applications/Xcode.app/Contents/Developer/usr/bin/copypng line 91.
ERROR: Failed to run  -q -iphone -f 0 -rem text /Users/admin/workSpace/projectname/projectname/file/AVPlayer/player_pause@2x.png /Users/admin/Library/Developer/Xcode/DerivedData/projectname-dhraqsmbiestqzhicfztskktllab/Build/Products/Debug-iphonesimulator/XueLeCloud.app/player_pause@2x.png
Command CopyPNGFile failed with a nonzero exit code

  将放置图片的文件夹改为 Player.bundle

2. TestFlight 需在iOS13以上才能下载(date:21/06/16)

    2.1 已有TestFlight ,更新一下即可(会提示你下载一个近期适合你的版本),如果一直点击下载无法下载的话,可以FQ试试

    2.2 没有TestFlight,如果该账号已经下载过TestFlight,可以在已购项目中找到TestFlight,重新下载即可。

           如果该账号之前没有下载过TestFlight,暂时不知道怎么下载(不过借别人下载过的账号登录下载也是可以的)

 

3.  [Application] The app delegate must implement the window property if it wants to use a main storyboard file.

    在最新版xcode中新建app,且删除scene相关代码后 运行该代码就说报警告,且页面并没有window

    解决: 只要在appDelegate中 写入 @synthesize window = _window; 即可

@interface AppDelegate ()

@end

@implementation AppDelegate
@synthesize window = _window;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    return YES;
}


@end
AppDelegate.m

 

posted @ 2021-05-11 17:01  古龙•历山大亚  阅读(426)  评论(0)    收藏  举报