zoukankan      html  css  js  c++  java
  • iOS开发:记录开发中遇到的编译或运行异常以及解决方案

    1.部署到真机异常 dyld`dyld_fatal_error:

    ->  0x120015088 <+0>: brk    #0x3

     dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire    

    Referenced from: /var/mobile/Containers/Bundle/Application/E1AC6933-4A9B-4A0B-B

    解决方案:将引用的库同时引用到Embedded Binaries

    2 undefined symbols for architecture armv7 referenced from

    解决方案:在Build Phases的Link Binary With Libraries中添加丢失的库

    3.ld: warning: directory not found for option

    解决方案:删除Search Paths里的错误项/ Framework Search Paths/Library Search Paths

    4.swift项目中:no rule to process file ‘a’ of type sourcecode.c.h for architecture arm64

    解决方案:在Build Phase的Compile Sources里去除掉.h的文件

    5.this class is not key value coding-compliant for the key xxx

    出现这个错误的的原因是删除了代码的属性,没有删除视图中IBOutlet

    6.(null): error: /Users/xxx/Documents/xxx/PhotoBrowser: No such file or directory

    清除已删除的项  Build Phases > CopyBundleResources 

    7.No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “xxx” were found.

     这个错误是unity打包出来的解决方案,试试更改Boundle identifier在重新Build 一份。

    持续更新!

    8 Users/eliteenergy/Downloads/projectName/Pods/Target Support Files/Pods/Pods-frameworks.sh

     终端输入以上路径 chmod a+x [path]

    A valid provisioning profile for this executable was not found

    This happened to me yesterday. What happened was that when I added the device Xcode included it in the wrong profile by default. This is easier to fix now that Apple has updated the provisioning portal:

    1. Log in to developer.apple.com/ios and click Certificates, Identifiers & Profiles
    2. Click devices and make sure that the device in question is listed
    3. Click provisioning profiles > All and select the one you want to use
    4. Click the edit button
    5. You will see another devices list which also has a label which will probably say "3 of 4 devices selected" or something of that nature.
    6. Check the select all box or scroll through the list and check the device. If your device was unchecked, this is your problem.
    7. Click "Generate"
    8. DON'T hit Download & Install – while this will work it's likely to screw up your project file if you've already installed the provisioning profile (see this question for more info).
    9. Open Xcode, open the Organizer, switch to the Devices tab, and hit the Refresh button in the lower right corner. This will pull in the changes to the provisioning profile.

    Now it should work.

  • 相关阅读:
    兴趣遍地都是,专注和持之以恒才是真正稀缺的
    vuecli2和vuecli3项目中添加网页标题图标
    vue+sentry 前端异常日志监控
    从零构建vue项目(三)--vue常用插件
    从零构建vue项目(一)--搭建node环境,拉取项目模板
    dbvisualizer安装
    TS学习笔记----(一)基础类型
    基于weui loading插件封装
    UI组件--element-ui--全部引入和按需引入
    vue_全局注册过滤器
  • 原文地址:https://www.cnblogs.com/tonge/p/5021531.html
Copyright © 2011-2022 走看看