草庐IT

library_path

全部标签

Docker 和 "The OpenSSL library reported an error"部署时

我正在通过Rust和Rocket通过AmazonElasticContainerService提供API。每当我将对象放入或获取到AmazonS3时,它在本地运行良好,但如果部署在AmazonECS上,我会收到以下运行时错误:HttpDispatch(HttpDispatchError{message:"TheOpenSSLlibraryreportedanerror"})当我在我的机器上运行Docker镜像时也会发生这种情况。我在发生错误的地方添加了评论:usesuper::types::SomeCustomType;userusoto_core::{DefaultCredentia

ios - iCloud 和核心数据 - "Path is outside of any CloudDocs container, will never sync"

因此,几周来我一直在尝试使用CoreData和iCloud在两个iDevice之间同步数据。苹果的documentationfrom2012/2013是用Objective-C写的,不是很详细。我曾尝试将其转换为适用于iOS9的Swift2.0。首先,我想我可能已经完成了,两台设备共享数据并同步任何更改。然后事情变得一团糟,之前删除的数据开始出现,同步的唯一方法是重新启动应用程序。现在我遇到了这个错误:CoreData:Ubiquity:LibrarianreturnedaseriouserrorforstartingdownloadsErrorDomain=BRCloudDocsEr

ios - 在 Swift 中可靠地获取 iOS 应用程序的 “~/Library” 路径

我想获取我可以在iOS设备的swift应用程序中创建文件并将日志写入文件的目录。我在这里阅读,https://stackoverflow.com/a/3763050/919280,使用Objective-C,有一个解决方案。我试着像这样快速地写它:varappDir=NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,NSUserDomainMask,true)但是,NSLibraryDirectory和NSUserDomainMask似乎不存在于Swift中。Swift有什么方法可以做到这一点? 最

path - 如何将代码 objective-c 转换为 Swift 以保存图像?

我在其他帖子看到过这段代码,用于保存图片://Createpath.NSArray*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);NSString*filePath=[[pathsobjectAtIndex:0]stringByAppendingPathComponent:@"Image.png"];//Saveimage.[UIImagePNGRepresentation(image)writeToFile:filePathatomically:YES];我正在尝

ios - xcode gm ios 8 gm swift 今天扩展在模拟器和设备中崩溃 : Library not loaded: @rpath/libswiftCore. dylib

当我为iOS运行Today扩展程序时出现此错误:dyld:Librarynotloaded:@rpath/libswiftCore.dylibReferencedfrom:/Users/andy/Library/Developer/CoreSimulator/Devices/724FF0C3-6622-4D12-865A-90244C8C63C1/data/Containers/Bundle/Application/30D8974B-ED1A-4F3A-8958-E9B7AA8901A9/App.app/PlugIns/Today.appex/TodayReason:imagenotf

ios - 错误 : unable to load standard library for target 'arm64-apple-ios10.0-simulator' ?

我更新了我的Xcode但无法构建。它失败了::0:error:unabletoloadstandardlibraryfortarget'arm64-apple-ios10.0-simulator'合并脚本:#1#Setbashscripttoexitimmediatelyifanycommandsfail.set-e#2#Setupsomeconstantsforuselateron.FRAMEWORK_NAME="SDK"OUTPUT_PATH="${SRCROOT}"#3#Ifremnantsfromapreviousbuildexist,deletethem.if[-d"${SR

开源 swift 项目的 Swift.org 问题。错误 : xcrun: error: unable to find utility "launch-with-toolchain", 不是开发人员工具或在 PATH 中

我正在尝试使用自定义工具链启动Xcode并启用它以使用Swift的开源版本。步骤取自Swift.org我收到这个错误:xcrun:error:unabletofindutility"launch-with-toolchain",notadevelopertoolorinPATH 最佳答案 来自https://swift.org/download/#apple-platforms的开源Swift工具链需要最新的Xcode7.2(当前:beta4)。xcrun等构建工具使用的developer目录位置必须设置为这个Xcode7.2。这可

ios - NSKeyValueObservation : Cannot remove an observer for the key path from object because it is not registered as an observer

我的应用出现随机崩溃(我无法在我拥有的设备上重现),但有以下异常(exception):CannotremoveanobserverFoundation.NSKeyValueObservation0xaddressforthekeypath"readyForDisplay"fromAVPlayerLayer0xaddressbecauseitisnotregisteredasanobserver.当我释放一个包含AVPlayerLayer的UIView时会发生这种情况。我的初始化:privatevarplayerLayer:AVPlayerLayer{returnself.layera

ios - 在 Swift fileExistsAtPath(_ path : String, isDirectory isDirectory: UnsafeMutablePointer<ObjCBool​​>) -> Bool 只接受单个参数

下面示例中的方法fileExistsAtPath()仅接受单个参数。iffm.fileExistsAtPath(result,isDirectory:&isDir){确切的错误消息是:“调用中有额外参数‘isDirectory’”。知道哪里出了问题吗? 最佳答案 问题是isDirectory是UnsafeMutablePointer而不是UnsafeMutablePointer你提供。您可以使用以下代码:varisDir=ObjCBool(false)ifNSFileManager.defaultManager().fileExis

ios - 警告 : UICollectionViewFlowLayout has cached frame mismatch for index path 'abc'

这是导致警告的代码:privateoverridefunclayoutAttributesForItemAtIndexPath(indexPath:NSIndexPath)->UICollectionViewLayoutAttributes?{letattributes=super.layoutAttributesForItemAtIndexPath(indexPath)letdistance=CGRectGetMidX(attributes!.frame)-self.midX;vartransform=CATransform3DIdentity;transform=CATransfo