2016-08-30 2 views
0

(従来の)iOSプロジェクトからアーカイブを作成する際に問題があります。アーカイブながら私は次のエラーを取得する:私は(過去に働いていた)/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/libから/usr/lib/libz.dylibファイルfrromリンクを作成するとiOSプロジェクトのアーカイブに関する問題:libz.dylibが見つかりません

Libtool /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/libPSPDFKit.a normal armv7 
cd /Users/appcell/Documents/Projects/Elho/Libraries/PSPDFKit 
export IPHONEOS_DEPLOYMENT_TARGET=5.0 
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/BuildProductsPath/Release-iphoneos -filelist /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/PSPDFKit.LinkFileList /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib -framework AssetsLibrary -framework CoreMedia -framework AVFoundation -framework ImageIO -framework MediaPlayer -framework CoreText -framework CoreGraphics -weak_framework UIKit -framework MessageUI -framework QuartzCore -framework Foundation -o /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/libPSPDFKit.a 

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib (No such file or directory) 

、私は今、次のエラーを取得する:

ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib, missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib (2 slices) 
Undefined symbols for architecture armv7: 
"_deflateInit_", referenced from: 
    -[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o) 
"_deflate", referenced from: 
    -[ASIDataCompressor compressBytes:length:error:shouldFinish:] in ASIDataCompressor.o 
    -[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o) 
"_deflateInit2_", referenced from: 
    -[ASIDataCompressor setupStream] in ASIDataCompressor.o 
"_inflate", referenced from: 
    _unzReadCurrentFile in unzip.o 
    -[ASIDataDecompressor uncompressBytes:length:error:] in ASIDataDecompressor.o 
    -[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o) 
"_get_crc_table", referenced from: 
    _unzOpenCurrentFile3 in unzip.o 
"_inflateEnd", referenced from: 
    _unzCloseCurrentFile in unzip.o 
    -[ASIDataDecompressor closeStream] in ASIDataDecompressor.o 
    -[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o) 
"_crc32", referenced from: 
    _unzReadCurrentFile in unzip.o 
"_inflateInit_", referenced from: 
    -[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o) 
"_deflateEnd", referenced from: 
    -[ASIDataCompressor closeStream] in ASIDataCompressor.o 
    -[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o) 
"_inflateInit2_", referenced from: 
    _unzOpenCurrentFile3 in unzip.o 
    -[ASIDataDecompressor setupStream] in ASIDataDecompressor.o 
ld: symbol(s) not found for architecture armv7 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

誰も同じ問題を抱えていましたか?

+0

Xcode 7.x.xを使用していますか?はいの場合は、プロジェクトターゲット - >一般 - >リンクされたフレームワークとライブラリアンを選択します。 '+'ボタンをクリックし、「libz.tbd」を選択してください。 –

+0

@Gagan_iOSご協力いただきありがとうございます。既にリストに追加されていますが、削除して追加しても同じエラーが表示されます: 'libz.dylib'がありません。 –

答えて

0

PSPDFKitここの創設者はここにあります。当社のPDF SDKはlibzを使用しているため、libz.dylib(後のXcodeのバージョンではlibz.tbdに改名されています)、またはトリックを行うべきリンカーフラグ-lzを追加してください。

私たちのSDKを最新のバージョンに更新すると、これは自動的に行われます。なぜなら、必要な依存関係をすでに知っている動的なフレームワークを使用しているからです。

+0

おかげさまで、ありがとうございました。私は 'libz.tbd'を追加し、' -lz'フラグも追加しましたが、運がありません。それでも同じエラーが発生します: 'ファイルを開くことができません:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib (そのようなファイルやディレクトリはありません) ' –

+0

Xcode 8または別のMacをお試しください。奇妙な問題のようだ。 – steipete

関連する問題