美文网首页
Xcode 14 pod lint spec报错(Cannot

Xcode 14 pod lint spec报错(Cannot

作者: 叫我龙哥 | 来源:发表于2022-09-18 17:26 被阅读0次

大概的报错就是下面这一句话

error: Cannot code sign because the target does not have an Info.plist file and one is not being 
generated automatically. Apply an Info.plist file to the target using the INFOPLIST_FILE build setting 
or generate one automatically by setting the GENERATE_INFOPLIST_FILE build setting to YES 
(recommended). (in target 'App' from project 'App')

这个时候需要在podspec文件里面新增

    s.user_target_xcconfig = {
        'GENERATE_INFOPLIST_FILE' => 'YES'
    }

    s.pod_target_xcconfig = {
        'GENERATE_INFOPLIST_FILE' => 'YES'
    }

亲测有效

相关文章

网友评论

      本文标题:Xcode 14 pod lint spec报错(Cannot

      本文链接:https://www.haomeiwen.com/subject/devportx.html