Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.05k stars 1.37k forks source link

QMUIResources.bundle (not yet loaded)没有加载 #1488

Closed RomanticEncounter closed 1 year ago

RomanticEncounter commented 1 year ago

Bug 表现 通过[QMUIHelper imageWithName:@"QMUI_tips_error"];获取图片显示为空

截图

图1

如何重现

  1. 通过cocoapods导入

其他信息

RomanticEncounter commented 1 year ago

我解决了这个问题,是由于QMUIKit-QMUIResources使用了与项目相同的Bundle identifier导致的, 即使Podfile文件中已经加入了以下代码,但是还是需要手动检查

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
        end
    end
  end