iOS_Error(五)

打印 上一主题 下一主题

主题 1001|帖子 1001|积分 3003

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
平时遇到的一些error+解决办法,记录 for 再次遇到


  •   1275 duplicate symbols
  •   Linker command failed with exit code 1 (use -v to see invocation)
    缘故起因1:Xcode 15 对编译要求更严酷些,用xcode14提交上来的代码 Xcode 15就会报符号重复错误
    方法1:Target -> Build Settings -> Other Linker Flags:添加 -ld64
    缘故起因2:podfile 手动引入了一份;不知道哪个库又自动引入一份
    方法2:删除podfile手动引入的
    缘故起因3:podfile导入了两个版本。解决:删除其中一个
  •   The linked framework ‘Pods_QNBUALiveIncubator_Example.framework’ is missing one or more architectures required by this target: armv7.
    Target > Build Settings > Build Options > Allow Multi-Platform Builds: YES
  •   Could not build Objective-C module ‘LiveHoverKit’
    Build Settings -> packaging -> enable modules -> YES
    Podspec -> ‘CLANG_ENABLE_MODULES’ => ‘YES’,
  •   found architecture ‘arm64’, required architecture ‘x86_64’
    Build Active Architecture Only -> No
  •   double-quoted include “xxx.h” in framework header, expected angle-bracketed instead
    Pods Project -> CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER -> NO
  •   Command SwiftCompile failed with a nonzero exit code
    Clean + del DerivedData, pods
  •   Xxx-Swift.h file not found
    必要有swift文件
  •   dyld[2802]: Library not loaded: @rpath/libswiftCore.dylib
    报错的 Target -> Build Settings -> Runpath Serach Patchs 添加 /usr/lib/swift
    Clean -> build
  •   `search_for’: Unable to resolve dependency: user requested ‘did_you_mean (= 1.6.3)’ (Gem::UnsatisfiableDependencyError)
    bundle install
  •   Build service could not create build operation: unknown error while handling message: MsgHandlingError(message: “unable to initiate PIF transfer session (operation in progress?)”)
    Clean Xcode
    Delete DerivedData
  •   Compiling for iOS 9.0, but module ‘JSONPreview’ has a minimum deployment target of iOS 11.0: /JSONPreview.swiftmodule/arm64-apple-ios.swiftmodule
    缘故起因:第三方库要求的iOS系统版本为11,而工程的最低版本为iOS 9
    解决:修改工程支持最低版本为iOS 11
  •   Command CodeSign failed with a nonzero exit code
    证书重新下载安装一遍
  •   File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
    Linker command failed with exit code 1 (use -v to see invocation)


  • 对应库的iOS版本限定太低:Target -> General -> Minimum Deployments -> 11.0
  • 大概:在 podfile 里加这一串指定iOS版本,再 pod install
  1. post_install do |installer|
  2.     installer.generated_projects.each do |project|
  3.           project.targets.each do |target|
  4.               target.build_configurations.each do |config|
  5.                   config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
  6.                end
  7.           end
  8.    end
  9. end
复制代码



  •   找不到类
    Target - Search paths - User Header Search paths
    新增一个值 ${SRCROOT} - Recursive (在根目录递归查找)
  •   “XCBBuildService”意外退出。
    退出Xcode,清理DerivedData,后打开重试
  •   The certificate used to sign “*” has either expired or has been revoked. An updated certificate is required to sign and install the application.

  • Delete all provisioning profiles at ~/Library/MobileDevice/Provisioning\ Profiles
  • Clean the project by holding Shift(⇧)+Command(⌘)+K or selecting Product > Clean (it might be labelled “Clean Build Folder”)
  • Restart Xcode


  •   Build service could not create build operation: unknown error while handling message: MsgHandlingError(message: “unable to initiate PIF transfer session (operation in progress?)”)
    1.Clean Xcode and Close Xcode
    2.delete ~/Library/Developer/Xcode/DerivedData
  •   ~/Pods/RenderCore/RenderCore.framework/Headers/CKNonNull.h:47:33 No member named ‘move’ in namespace ‘std’; did you mean ‘modf’?
    #include
  •   Cannot find ‘XXX’ in scope
    pod install 时某些库安装失败了,重新 pod install 一下

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

半亩花草

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表