iOS_Error(三)

  • You don’t have permission to file(没有权限操作文件)

.plist文件-> Executable file -> $(EXECUTABLE_NAME)

 

  • dyld: Library not loaded: @rpath/BTLibrary.framework/BTLibrary
  • no suitable image found

Build Settings -> Link Binary With Libraries

相应的库status改成 Optional

Copy Files -> Destination:Frameworks -> 有导入

 

Build ID 不能改!!!!!

 

  • Max OS-[xxx.app已损坏,打不开.你应该将它移到废纸篓]

sudo spctl --master-disable

 

MacOS 10.15 以上解决办法

sudo xattr -rd com.apple.quarantine (拖入文件) 回车,就可以打开啦

 

  • 应用程序“*.app”无法打开

其实这个错误主要是解压缩软件在解压文件时,破坏了应用里面可执行文件的权限造成的

右键->显示包内容->Contents->MacOS 

如果权限正确的话,该文件应该是一个 Unix 可执行的文件,而不是现在这种类型不明的文件

chmod +x  (拖入文件) 回车,就可以打开啦

 

按住control 打开

 

以下:2020.08.23更新

  • Property follows Cocoa naming convention for returning 'owned' objects

属性不能以关键字开头

 

  • You don’t have permission to save the file

因为我用了absoluteString,应该用path,这才知道:

URL.absoluteString:

"file:///var/mobile/Containers/Data/Application/8151258C-5F60-44EA-8236-3CD9173D9C46/Documents/DataBase/MoGoods.db"

URL.path:

"/var/mobile/Containers/Data/Application/8151258C-5F60-44EA-8236-3CD9173D9C46/Documents/DataBase/MoGoods.db"

是不一样的!!!!!!!!

 

  • dyld: Library not loaded: @rpath/sqlcipher.framework/sqlcipher

Reason: no suitable image found.  Did find:

sqlcipher.framework/sqlcipher: code signature invalid for

Targets -> Build Phases -> Link Binary With Libraries

添加报错的库,Status设置为Option

 

  • CryptoKit

#if canImport(CryptoKit)

#else

#endif

 

Targets -> Build Setting -> Other Linker Flags 

-weak_framework

"CryptoKit"

 

  • UITabBarItem得UIImage不显示问题

将图片Assets.xcassets中图片渲染模式 Render as 更改为 Origin Image

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小莫同学~

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值