objective-c - 安装 MuPDF 时 Pod 安装失败
问题描述
我正在开发一个 pdf 查看器应用程序,并且正在使用 MuPdf 库 cocoapods。我创建了一个新项目,添加了一个 pod 文件并运行了 pod install。发生以下错误。感谢您提供任何帮助来解决此问题。我已经设置了自动管理登录项目。
Analyzing dependencies
Downloading dependencies
Installing MuPDF (1.10)
[!] /bin/bash -c
set -e
cd platform/ios
# release armv7 + arm64
xcodebuild -scheme MuPDF -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
# debug 64bit sim
xcodebuild -scheme MuPDF -configuration Release -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
cd ../../build/
for i in mupdf mupdfthird; do
LIB=lib${i}.a
lipo -create -output $LIB release-ios-i386-x86_64/$LIB release-ios-armv7-arm64/$LIB
done
# rename to avoid any conflict with the libmupdf.a that the pod generates
mv libmupdf.a libmupdfcore.a
# copy iOS headers into the general include directory, as
# cocoapods 1.0 insists that all headers are under the
# header_mappings_dir location
cd ..
cp platform/ios/Classes/*.h platform/ios/common.h include/mupdf/
cd platform/ios
# now fix the imports/includes to be mupdf/foo.h instead of foo.h
find . -name '*.[mh]' -print0 | xargs -0 perl -pi -e 's,#import "Mu,#import "mupdf/Mu,'
find . -name '*.[mh]' -print0 | xargs -0 perl -pi -e 's,#include "common.h",#include "mupdf/common.h",'
find . -name '*.[mh]' -print0 | xargs -0 perl -pi -e 's,#import "common.h",#import "mupdf/common.h",'
# the reference to memory.h in memento.h upsets xcode when
# building a module (fixed upstream for version after 1.9)
cd ../..
find . -name 'memento.h' -print0 | xargs -0 perl -pi -e 's,#include <memory.h>,#include <stdlib.h>,'
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme MuPDF -configuration Release CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO
Build settings from command line:
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: An empty identity is not valid when signing a binary for the product type 'Application'. (in target 'MuPDF' from project 'MuPDF')
** BUILD FAILED **
解决方案
推荐阅读
- maven - 如何使用 Kubernetes 运行器在 Gitlab 中为 Maven 添加持久卷
- stdout - Spring Cloud Data Flow Runtime 实例不显示 stdout 和 stderr
- mysql - 错误提示“错误代码:1242。子查询返回超过 1 行”
- python-3.x - 如何将选择值传递给 SQLite 数据库?
- sqlite - SQLite 是否使用我在连接两个视图时创建的索引?
- android - 在父布局中显示图像的一部分
- java - 使用泛型时如何解决这个未经检查的强制转换错误?
- sql-server - Power Shell 将 SQL 查询结果添加到数组或表中
- php - 如何在 laravel 中获取开始日期和结束日期之间的所有记录?
- scope - 棱镜库 Dryioc CreateScope - 无法访问已处置的对象