草庐IT

distutils_path

全部标签

ios - swift 错误 : Could not determine generated file paths for Core Data code generation:

我想运行应用程序后将我的Xcode文件移动到iCloudDrive,但出现此错误:无法确定核心数据代码生成的生成文件路径:ErrorDomain=NSCocoaErrorDomainCode=260“路径/Users/sebastianeppler/Library/MobileDocuments/com~apple~CloudDocs/Xcode上没有模型的当前版本/OnlyFun/OnlyFun/OnlyFun/OnlyFun.xcdatamodeld:"UserInfo={NSFilePath=/Users/sebastianeppler/Library/MobileDocumen

swift - 错误 : "Unexpected nil index path in _canPerformAction:forCell:sender:, this should never happen."

我有一个带有2个原型(prototype)单元格的动态tableView。我将其中一个单元格用于节标题,节标题单元格有它自己的类。数据已毫无问题地填充到这些单元格。我收到此错误消息“错误:“_canPerformAction:forCell:sender:中的意外nil索引路径,这永远不应该发生。”在运行时,当我点击节标题时。有人知道如何摆脱这个错误吗?提前致谢!functableView(_tableView:UITableView,cellForRowAtindexPath:IndexPath)->UITableViewCell{letcell=tableView.dequeueR

ios - 无法加载 NSData(contentsOfFile : file path) from mobile or simulator filesystem, 但它适用于 OS X 文件系统

我下载了一个包含XML文件的ZIP文件。我使用SSZipArchive解压缩文件并将文件安全保存在目录/library下的应用程序沙箱中。例如:/var/mobile/Containers/Data/Application/0A0091C2-7BC5-484F-BDBB-B2ABF305BB09/完整的绝对文件路径是:/var/mobile/Containers/Data/Application/0A0091C2-7BC5-484F-BDBB-B2ABF305BB09/Libary/bgb.xml这个问题很奇怪,因为如果我将模拟器中的文件路径(绝对路径)更改为我的/Download/b

ios - fatal error : Could not create a path to the bundle

我整整两天都在尝试制作一个包含.xib的CocoaPod,但无济于事。我的框架有一个独立的Xcode项目,包含以下.podspec:Pod::Spec.newdo|s|s.name="OrderStatusTable"s.version="1.2.0"s.platform=:ioss.ios.deployment_target='9.0's.summary="OrderStatusUITableViewframework."s.description="AUITableViewframeworkwithcustomview."s.homepage="https://github.com

开源 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 9、10 核心数据 : Failed to load optimized model at path

我已经创建了新版本的CoreData模型并将现有模型迁移到它。应用程序在iOS9+上没有任何问题,但对于iOS9和10,我收到此错误:2017-10-2219:28:37.081CafeManager[16654:1918728]CoreData:Failedtoloadoptimizedmodelatpath'/Users/dj-glock/Library/Developer/CoreSimulator/Devices/A81AA9C4-7B59-4422-BA0A-0FD0D1A05205/data/Containers/Bundle/Application/DD66571C-4E

ios - 错误 : UICollectionView received layout attributes for a cell with an index path that does not exist in Swift

我“https://www.raywenderlich.com/392-uicollectionview-custom-layout-tutorial-pinterest”创建自定义UICollectionView。(调整单元格高度)如果我向上滚动,cell会继续添加,从上往下滚动刷新。当您运行您的应用程序并最初生长Cells时没有问题。但是,刷新或重新排序单元格数量时总是出错。错误:***Assertionfailurein-[UICollectionViewDatavalidateLayoutInRect:],/BuildRoot/Library/Caches/com.apple.

ios - Realm swift : Realm at path already opened with different schema version

我最近创建了一个新分支,并尝试重构我的大部分代码,让Realm比CoreData更胜一筹。但到目前为止,我还没有运气让我的代码运行。首先,shared_realm.cpp抛出异常。抛出错误的代码行是:if(realm->config().schema_version!=config.schema_version&&config.schema_version!=ObjectStore::NotVersioned){throwMismatchedConfigException("Realmatpathalreadyopenedwithdifferentschemaversion.");}如

swift - 在终端中运行 Swift 构建导致 "Platform Path"错误

我最近重新格式化了我的Mac。今天我尝试通过终端构建一个swift可执行文件来启动一个服务器端swift项目。以下是我使用过的命令:swiftpackageinit--typeexecutable快速构建运行swiftbuild时,出现以下错误:xcrun:error:unabletolookupitem'PlatformPath'fromcommandlinetoolsinstallationxcrun:error:unabletolookupitem'PlatformPath'inSDK'/Library/Developer/CommandLineTools/SDKs/MacOSX

java - java.library.path 和 classpath 之间有什么关系

我正在寻找java.library.path和类路径之间关系的简单解释。虽然我算不上新手,但我从来没有和j.l.p.打过交道。但是我们在使用我参与的WebSphereMQ应用程序时遇到了问题,我们希望打开它们的跟踪。不幸的是,一旦我告诉IBM我们已经重新打包了MQjar以便我们可以通过Maven进行部署,他们甚至不会和我谈论这个问题,除非我们用java.library.path加载WebSphereMQjar。太棒了,让我们重做我们的整个部署策略。我可以咬紧牙关,但这是我的问题:java.library.path和类路径有什么关系?在j.l.p上找到的类对编译器可见吗?你必须在编译器的