Java自学者论坛

 找回密码
 立即注册

手机号码,快捷登录

恭喜Java自学者论坛(https://www.javazxz.com)已经为数万Java学习者服务超过8年了!积累会员资料超过10000G+
成为本站VIP会员,下载本站10000G+会员资源,会员资料板块,购买链接:点击进入购买VIP会员

JAVA高级面试进阶训练营视频教程

Java架构师系统进阶VIP课程

分布式高可用全栈开发微服务教程Go语言视频零基础入门到精通Java架构师3期(课件+源码)
Java开发全终端实战租房项目视频教程SpringBoot2.X入门到高级使用教程大数据培训第六期全套视频教程深度学习(CNN RNN GAN)算法原理Java亿级流量电商系统视频教程
互联网架构师视频教程年薪50万Spark2.0从入门到精通年薪50万!人工智能学习路线教程年薪50万大数据入门到精通学习路线年薪50万机器学习入门到精通教程
仿小米商城类app和小程序视频教程深度学习数据分析基础到实战最新黑马javaEE2.1就业课程从 0到JVM实战高手教程MySQL入门到精通教程
查看: 360|回复: 0

iOS开发:记录开发中遇到的编译或运行异常以及解决方案

[复制链接]
  • TA的每日心情
    奋斗
    前天 12:49
  • 签到天数: 789 天

    [LV.10]以坛为家III

    2049

    主题

    2107

    帖子

    72万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    722638
    发表于 2021-6-17 15:44:06 | 显示全部楼层 |阅读模式

    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.

     

    哎...今天够累的,签到来了1...
    回复

    使用道具 举报

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

    本版积分规则

    QQ|手机版|小黑屋|Java自学者论坛 ( 声明:本站文章及资料整理自互联网,用于Java自学者交流学习使用,对资料版权不负任何法律责任,若有侵权请及时联系客服屏蔽删除 )

    GMT+8, 2024-9-8 11:45 , Processed in 0.658252 second(s), 29 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表