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.

  • 相关阅读:
    垃圾回收的可触及性
    常用的垃圾回收算法
    石子归并(区间dp 模板)
    D. Zero Quantity Maximization ( Codeforces Round #544 (Div. 3) )
    Parity game(带权并查集+离散化)
    Supermarket(贪心/并查集)
    D. Nested Segments(树状数组、离散化)
    dijkstra,belllman-ford,spfa最短路算法
    重载符
    Electrification Plan 最小生成树(prim+krusl+堆优化prim)
  • 原文地址:https://www.cnblogs.com/tonge/p/5021531.html
Copyright © 2011-2022 走看看