Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案

Home Page:http://qmuiteam.com/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

RomanticEncounter opened this issue · comments

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

截图

图1

如何重现

  1. 通过cocoapods导入

其他信息

  • 设备: 模拟器:iPhone 14 Pro
  • iOS 版本: [iOS 16.4]
  • Xcode 版本: [Xcode 14.3]
  • QMUI 版本: [4.6.0]

我解决了这个问题,是由于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