Check dependencies Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified capabilities: inAppPurchase. CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'
簽章錯誤。打開開發者後台查看證書,會發現狀態已是 invalid。
重新生成證書與描述檔,並在專案的 Build Settings 中重新指向新的 provisioning profile。
The following build commands failed:
CompileC build/xiami.build/Release-iphonesimulator/xiami.build/Objects-normal/x86_64/zip.o
Utils/zipArchive/minizip/zip.c normal x86_64 c
com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
64 位元編譯問題。從錯誤路徑中的 x86_64 可以看出,編譯器試圖為 64 位元的模擬器架構編譯這個第三方 C 檔,但該版本的 minizip 原始碼尚未完全相容。
在 Build Settings 的 Valid Architectures 中移除 64 位元支援,問題隨即解決。
要注意的是,蘋果後來已要求 App 必須支援 64 位元,因此這只是過渡時期的權宜之計。若遇到相同問題,更根本的解法是升級 zipArchive 至支援 arm64 / x86_64 的版本。

作者:畢小朋(老畢)
郵箱:wirelessqa.me@gmail.com
微博:@WirelessQA
部落格:https://blog.csdn.net/wirelessqa