當(dāng)我們使用新版XCode創(chuàng)建項目時,項目的默認(rèn)編譯方式為
當(dāng)使用cocoapods 時,新版的項目真機運行時會提示 Unable to install "xxx"
詳情
Details
Unable to install "xxxxx"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
--
No code signature found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
User Info: {
......
解決方案一:
Targets--> General --> Frameworks,Libraries,and Embedded Content
將 Pods_xxxxxx.framework Embed 設(shè)置為 Embed $ Sign
解決方案二:
如果方案一未生效結(jié)合方案二嘗試
https://github.com/CocoaPods/CocoaPods/issues/8151
Podfile 中添加
install! 'cocoapods', :disable_input_output_paths => true
執(zhí)行 pod install
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
# New Build System
# https://github.com/CocoaPods/CocoaPods/issues/8151
install! 'cocoapods', :disable_input_output_paths => true
target 'xxxxx' do
# Comment the next line if you don't want to use dynamic frameworks
inhibit_all_warnings!
use_frameworks!
# Pods for xxxxx
pod 'Moya/RxSwift'#基于alm封裝庫