草庐IT

asset_pipeline

全部标签

ios - xcodebuild -exportArchive 失败并出现错误 Locating signing assets failed

我正在使用命令行xcodebuild工具从Xcode文件中导出.ipa文件。它在Xcode8.3.3之前运行良好。相同的设置已停止使用Xcode9beta。现在它失败并出现此错误:IDEDistribution:Stepfailed::ErrorDomain=IDEDistributionSigningAssetStepErrorDomainCode=0"Locatingsigningassetsfailed."似乎Xcode9无法找到配置文件,但为什么? 最佳答案 在我的例子中,问题由-exportOptionsPlistplis

ios - 检查给定的 PHAsset 是 iCloud Assets 吗?

我正在尝试获取PhAsset对象。我想隔离iCloudAssets。这是我的代码,PHFetchResult*cloudAlbums=[PHAssetCollectionfetchAssetCollectionsWithType:PHAssetCollectionTypeAlbumsubtype:PHAssetCollectionSubtypeAnyoptions:nil];[cloudAlbumsenumerateObjectsUsingBlock:^(PHAssetCollection*collection,NSUIntegeridx,BOOL*stop){if(collectio

ios - 检查给定的 PHAsset 是 iCloud Assets 吗?

我正在尝试获取PhAsset对象。我想隔离iCloudAssets。这是我的代码,PHFetchResult*cloudAlbums=[PHAssetCollectionfetchAssetCollectionsWithType:PHAssetCollectionTypeAlbumsubtype:PHAssetCollectionSubtypeAnyoptions:nil];[cloudAlbumsenumerateObjectsUsingBlock:^(PHAssetCollection*collection,NSUIntegeridx,BOOL*stop){if(collectio

ios - 在启用 Assets 库的情况下在 Xcode 5 中修改 Info.plist 的 CFBundleVersion

使用Xcode5的新Assets库,添加图像和组织它们从未如此简单。但是,它似乎破坏了我用于创建构建的一些脚本。我的运行脚本阶段中有一个脚本将CFBundleVersion设置为plist中的当前时间戳。在脚本中,我执行了这条语句:/usr/libexec/PlistBuddy-c"Set:CFBundleVersion$timestamp"$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH但是,当执行此语句时,将显示以下语句:Set:Entry,":CFBundleVersion",DoesNotExistFileDoesn'tExist,WillCreate:/

ios - 在启用 Assets 库的情况下在 Xcode 5 中修改 Info.plist 的 CFBundleVersion

使用Xcode5的新Assets库,添加图像和组织它们从未如此简单。但是,它似乎破坏了我用于创建构建的一些脚本。我的运行脚本阶段中有一个脚本将CFBundleVersion设置为plist中的当前时间戳。在脚本中,我执行了这条语句:/usr/libexec/PlistBuddy-c"Set:CFBundleVersion$timestamp"$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH但是,当执行此语句时,将显示以下语句:Set:Entry,":CFBundleVersion",DoesNotExistFileDoesn'tExist,WillCreate:/

ios - Xcode 6 Beta 6 CUICatalog : Invalid asset name supplied: (null), 或无效比例因子 : 2. 000000

我收到以下错误:CUICatalog:Invalidassetnamesupplied:(null),orinvalidscalefactor:2.000000Couldnotloadthe"(null)"imagereferencedfromanibinthebundlewithidentifier"com.example.project"自从我在InterfaceBuilder中为选项卡栏项设置“选定图像”后出现错误:我已将文件添加到Xcode中:设置写入Storyboard文件:我正在使用Xcode6Beta6我知道Error:CUICatalog:Invalidassetnam

ios - Xcode 6 Beta 6 CUICatalog : Invalid asset name supplied: (null), 或无效比例因子 : 2. 000000

我收到以下错误:CUICatalog:Invalidassetnamesupplied:(null),orinvalidscalefactor:2.000000Couldnotloadthe"(null)"imagereferencedfromanibinthebundlewithidentifier"com.example.project"自从我在InterfaceBuilder中为选项卡栏项设置“选定图像”后出现错误:我已将文件添加到Xcode中:设置写入Storyboard文件:我正在使用Xcode6Beta6我知道Error:CUICatalog:Invalidassetnam

ios - 如何从 Cordova for iOS 中的 native URI( Assets 库)访问图像

我有一个使用相机拍摄照片的Cordova/PhoneGap应用程序。我需要访问此图片以发送到我的服务器。对于Android,我只需使用$cordovaFile.readAsDataURL(cordova.file.dataDirectory,fileName)但是;在iOS上,文件名不会返回。我的iOS返回值显示路径为assets-library://asset/asset.JPG?id=539425FE-43AA-48E7-9865-D76348208AC7&ext=JPG我怎样才能访问和阅读这张图片?我宁愿坚持使用$cordovaFile但只是想让它工作。我正在使用CordovaC

ios - 如何从 Cordova for iOS 中的 native URI( Assets 库)访问图像

我有一个使用相机拍摄照片的Cordova/PhoneGap应用程序。我需要访问此图片以发送到我的服务器。对于Android,我只需使用$cordovaFile.readAsDataURL(cordova.file.dataDirectory,fileName)但是;在iOS上,文件名不会返回。我的iOS返回值显示路径为assets-library://asset/asset.JPG?id=539425FE-43AA-48E7-9865-D76348208AC7&ext=JPG我怎样才能访问和阅读这张图片?我宁愿坚持使用$cordovaFile但只是想让它工作。我正在使用CordovaC

ios - 仅从 Assets 集合类型 PHAssetCollectionTypeSmartAlbum 中获取类型为 PHAssetMediaTypeImage 的照片

我正在使用Photos框架在iOS8中获取相册列表。我可以使用PHFetchResult*smartAlbums=[PHAssetCollectionfetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbumsubtype:PHAssetCollectionSubtypeAlbumRegularoptions:nil];这为我提供了包括视频在内的所有智能相册的列表。如何从此列表中过滤掉视频。我只需要图像。帮助将不胜感激。谢谢。 最佳答案 您应该设置获取选项,它有一个属性