Xcode 14 pod lint spec报错(Cannot

2022-09-18  本文已影响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'
    }

亲测有效

上一篇 下一篇

猜你喜欢

热点阅读