系統(tǒng)版本:iOS 11.3 機(jī)型 iphone7 Plus
解決方法:(此方法參照文章 不通)
1.在targets->build settings
宏邮,搜索runpath search paths
,增加一個@executable_path/Frameworks
2.如果原來就有這個條目缸血,刪除重新添加下蜜氨,記得clean下項(xiàng)目
3.target - > build settings - > embedded content contains swift code
,此條目apple 默認(rèn)是不開啟的捎泻,如果上面方法還是不能解決的話记劝,就把這個條目設(shè)置成YES
,不過我的還是默認(rèn)設(shè)置NO
經(jīng)測試方法:
1.target - > build settings - > embedded content contains swift code
這個在項(xiàng)目中沒有找到此配置選項(xiàng)族扰。xcode 13.2
2.target - > build settings - > Always Embed Swift Standard Libraries
默認(rèn)為NO
改為YES
重新編譯運(yùn)行項(xiàng)目厌丑,解決問題定欧,再改回NO
問題不再出現(xiàn)