iOS_Error(四)

2022-07-20 13:37:23 浏览数 (1)

1、Merge 其他分支后提交失败

提示:HEAD -> refs/for/pod (no new changes) merge指令加上–no-ff (不使用fast-forward方式合并,合并的时候会创建一个新的commit用于合并) git merge --no-ff master 参考

2、Unable to read the license file LICENSE for the spec FirebaseInstanceID (4.8.0)

Close Xcode Delete pods、podfile.lock、xxx.workspace、DeriveData Then:pod install

3、Value for SWIFT_VERSION cannot be empty.

Target -> Build Settings -> Swift Language Version 选择需要的版本

4、error reading '/Users/…/WWFitnessWidgetExtension-Bridging-Header.h (我删掉了没用到的桥接文件)

还需要在配置里删除:Target -> Build Settings -> Swift Compiler - General 删除配置文件 就OK了

5、需要OC和Swift混编,添加桥接文件后报错:Cannot find ‘ConfigurationIntent’ in scope

在交接文件中添加:#import “ConfigurationIntent.h”

6、‘sharedApplication’ is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.

在pod工程里修改报错库的配置: Build Settings -> All -> Require Only App-Extension-Safe API Set to NO 或者 在Podfile底部加入:

代码语言:javascript复制
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No'
    end
  end
end
7、The `` target overrides the CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER build setting defined in `Pods/Target Support Files/Pods-XXX’. This can lead to problems with the CocoaPods installation

Target -> Build Settings -> 相应的项 改成 $(inherited)

8、Type ‘’ does not conform to protocol Decodable Encodable

Every property in a Codable type must also be Codable as well.

9、‘JSONModel/JSONModel.h’ file not found

删掉pods 重新install

0 人点赞