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.

  • 相关阅读:
    HDU4477 Cut the rope II 递推
    HDU4571 Travel in time 动态规划
    在VS2010中使用$err,hr快速查看当前GetLastError()的值
    对C语言的volatile关键字的理解
    三星S6D1121主控彩屏(240*320*18bit,262K)图形设备接口(GDI)实现
    C语言创建二叉树数据结构, 以及各种遍历
    Ubuntu下使用Dr.com宽带客户端上网的步骤
    8051单片机学习笔记/概要/总结/备忘
    联想笔记本电脑Ubuntu系统下触摸板的锁定
    [MSP430] 集成开发环境 IAR Embedded Workbench for MSP430 5.50
  • 原文地址:https://www.cnblogs.com/tonge/p/5021531.html
Copyright © 2011-2022 走看看