iOS

    技术2024-01-28  114

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

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

     

    dyld: Library not loaded: @rpath/BTLibrary.framework/BTLibraryno 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  (拖入文件) 回车,就可以打开啦

     

    无法打开“SQLiteStudio.app”,因为无法确认开发者的身份。

    按住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

     

     

     

     

     

    Processed: 0.017, SQL: 9