iOS App CocoaPod Blues:Podfile 不再引入框架
iOS App CocoaPod Blues: Podfile not pulling in Frameworks any more
我有一个构建问题(与 cocoapods 相关)困扰了我一天。
它出乎意料,因为构建直到昨天都运行良好。
我的 cocoapods 框架部分的设置方式是:
对于框架
platform :ios, '7.0'
def common_pods
pod 'Godzippa'
pod 'FrostyLIB', :path => "~/dev/AppCode/FrostyLib/"
end
target 'CoolDocsSDK' do
common_pods
end
target 'CoolDocsSDKTests' do
common_pods
pod 'OCMock', '~> 3.2'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'FROSTY'
target.build_configurations.each do |config|
config.build_settings['CLANG_WARN_DOCUMENTATION_COMMENTS'] = ['NO']
if config.name == 'Release'
config.build_settings['GENERATE_MASTER_OBJECT_FILE'] = ['YES']
config.build_settings['STRIP_STYLE'] = ['non-global']
config.build_settings['DEPLOYMENT_POSTPROCESSING'] = ['YES']
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = ['NO']
config.build_settings['GCC_PRECOMPILE_PREFIX_HEADER'] = ['NO']
end
end
end
end
end
这构建完美。
App Podfile 的设置方式是:
platform :ios, '10.0'
def common_pods
# Pods for CoolDocsApp
pod 'Fabric'
pod 'Crashlytics', '~> 3.9'
pod 'M13ProgressSuite'
pod 'SwiftyStoreKit'
pod 'OpenSSL-Universal', '~> 1.0'
pod 'FacebookCore'
pod 'AppsFlyerFramework'
pod 'SideMenu'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'VideoBackgroundViewController'
#Release Pod
pod 'CoolDocsSDK', :path => "~/Desktop/CoolDocsSDK-iOS/"
end
target 'CoolDocsApp' do
use_frameworks!
common_pods
end
target 'CoolDocsAppStaging' do
use_frameworks!
common_pods
end
框架构建良好。如您所见,该应用程序有一个生产目标 (CoolDocsApp) 和一个暂存目标 (CoolDocsAppStaging)
Blockquote
该应用程序有以下 Pods 在 pod 安装期间未安装(显示在 XCode 中)
如您所见,除了 GodZippa - 其他 Pods 的 none 正在安装。
我不确定为什么它昨天停止工作了。 我在 XCode 中构建生产目标时,应用程序构建开始失败,然后切换回构建开发目标。框架构建工作正常
部分 Pods 失败并出现以下错误:
The file “VideoBackgroundViewController.xcconfig” couldn’t be opened because there is no such file. (/Users/CooldocsMan/dev/AppCode/CoolDocsApp/Pods/Target Support Files/VideoBackgroundViewController/VideoBackgroundViewController.xcconfig)
error: unable to read module map contents from 'Target Support Files/VideoBackgroundViewController/VideoBackgroundViewController.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “VideoBackgroundViewController.modulemap” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/CooldocsMan/dev/AppCode/CoolDocsApp/Pods/Target Support Files/VideoBackgroundViewController/VideoBackgroundViewController.modulemap, NSUnderlyingError=0x7f8965daaa40 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error: unable to read module map contents from 'Target Support Files/VideoBackgroundViewController/VideoBackgroundViewController.module
感谢您帮助解决此问题!
我重新启动了我的 Mac 并重新运行 pod 安装和 XCode 为应用程序构建,它工作得很好..
所以在这种情况下,简单的重启会有所帮助。
我有一个构建问题(与 cocoapods 相关)困扰了我一天。 它出乎意料,因为构建直到昨天都运行良好。
我的 cocoapods 框架部分的设置方式是:
对于框架
platform :ios, '7.0'
def common_pods
pod 'Godzippa'
pod 'FrostyLIB', :path => "~/dev/AppCode/FrostyLib/"
end
target 'CoolDocsSDK' do
common_pods
end
target 'CoolDocsSDKTests' do
common_pods
pod 'OCMock', '~> 3.2'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'FROSTY'
target.build_configurations.each do |config|
config.build_settings['CLANG_WARN_DOCUMENTATION_COMMENTS'] = ['NO']
if config.name == 'Release'
config.build_settings['GENERATE_MASTER_OBJECT_FILE'] = ['YES']
config.build_settings['STRIP_STYLE'] = ['non-global']
config.build_settings['DEPLOYMENT_POSTPROCESSING'] = ['YES']
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = ['NO']
config.build_settings['GCC_PRECOMPILE_PREFIX_HEADER'] = ['NO']
end
end
end
end
end
这构建完美。
App Podfile 的设置方式是:
platform :ios, '10.0'
def common_pods
# Pods for CoolDocsApp
pod 'Fabric'
pod 'Crashlytics', '~> 3.9'
pod 'M13ProgressSuite'
pod 'SwiftyStoreKit'
pod 'OpenSSL-Universal', '~> 1.0'
pod 'FacebookCore'
pod 'AppsFlyerFramework'
pod 'SideMenu'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'VideoBackgroundViewController'
#Release Pod
pod 'CoolDocsSDK', :path => "~/Desktop/CoolDocsSDK-iOS/"
end
target 'CoolDocsApp' do
use_frameworks!
common_pods
end
target 'CoolDocsAppStaging' do
use_frameworks!
common_pods
end
框架构建良好。如您所见,该应用程序有一个生产目标 (CoolDocsApp) 和一个暂存目标 (CoolDocsAppStaging)
Blockquote
该应用程序有以下 Pods 在 pod 安装期间未安装(显示在 XCode 中)
我不确定为什么它昨天停止工作了。 我在 XCode 中构建生产目标时,应用程序构建开始失败,然后切换回构建开发目标。框架构建工作正常
部分 Pods 失败并出现以下错误:
The file “VideoBackgroundViewController.xcconfig” couldn’t be opened because there is no such file. (/Users/CooldocsMan/dev/AppCode/CoolDocsApp/Pods/Target Support Files/VideoBackgroundViewController/VideoBackgroundViewController.xcconfig)
error: unable to read module map contents from 'Target Support Files/VideoBackgroundViewController/VideoBackgroundViewController.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “VideoBackgroundViewController.modulemap” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/CooldocsMan/dev/AppCode/CoolDocsApp/Pods/Target Support Files/VideoBackgroundViewController/VideoBackgroundViewController.modulemap, NSUnderlyingError=0x7f8965daaa40 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error: unable to read module map contents from 'Target Support Files/VideoBackgroundViewController/VideoBackgroundViewController.module
感谢您帮助解决此问题!
我重新启动了我的 Mac 并重新运行 pod 安装和 XCode 为应用程序构建,它工作得很好..
所以在这种情况下,简单的重启会有所帮助。