草庐IT

BUNDLE_PATH

全部标签

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 - 即使在指定 Bundle 时,在 IBDesignable Views 中使用 Assets 目录中的命名颜色也会导致 IB 崩溃

当引用使用UIColor(named:)创建的颜色时,InterfaceBuilder崩溃,因为它为颜色完成了nil。最初我认为这是因为IB在错误的bundle中寻找颜色,但在指定要查找的Bundle后,IB仍然找不到颜色。这在设备/模拟器上运行时运行良好。extensionUIColor{//MARK:-Orangesstaticlettangerine=UIColor(named:"Tangerine",in:Bundle(for:AppDelegate.self),compatibleWith:nil)!.....}进一步研究一下,IB所查看的Bundle似乎确实包含对颜色和图像

ios - 错误 : Bundle only contains bitcode-marker

我使用Xcode7版本并尝试提交我的应用程序以供审核。提交应用程序进行审核后,我收到了一封来自Apple的邮件,其中包含以下错误:InvalidBundle-Failedtoverifybitcodeintestapp_main.framework/testapp_main:error:Bundleonlycontainsbitcode-markerTestapp.app/Frameworks/testapp_main.framework/testapp_main(armv7)...我还在build设置中禁用了位码:我该如何解决这个问题? 最佳答案

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

Bundle的Swift 3示例(对于: XXX)

我正在制作一个Swift3模块。所以我需要知道与该模块中的类关联的包。在Swift2中,这是:letbundle=NSBundle(forClass:self.dynamicType)我如何在Swift3中适本地执行此操作? 最佳答案 解决方法:letbundle=Bundle(for:type(of:self)) 关于Bundle的Swift3示例(对于:XXX),我们在StackOverflow上找到一个类似的问题: https://stackoverfl

从 Bundle 复制文件时出现 Swift FileManager 错误

我正在尝试将一个文件从我的应用程序包复制到设备,但我遇到了一个奇怪的错误:无法将表达式类型“$T5”转换为类型“LogicValue”我在下面的代码中注释了导致问题的行。这里是一切://ThisfunctionreturnsthepathtotheDocumentsfolder:funcpathToDocsFolder()->String{letpathToDocumentsFolder=NSSearchPathForDirectoriesInDomains(.DocumentDirectory,.UserDomainMask,true)[0]asStringreturnpathToD

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 - target 指定产品类型 'com.apple.product-type.bundle.ui-testing' ,但是 'iphonesimulator' 平台没有这样的产品类型

当我运行我的swift项目时,我得到了这个错误。targetspecifiesproducttype'com.apple.product-type.bundle.ui-testing',butthere'snosuchproducttypeforthe'iphonesimulator'platform我在SO上发现了一些类似的问题,但是this答案没有解决我的问题。我googled它也是,里面没有这个产品类型的项目。我正在使用xcode6.4和swift1.2 最佳答案 在使用Xcode7Beta添加用于UI测试的产品并不断在Xco

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.");}如