gpt4 book ai didi

ios - COCOAPODS 验证 i386 错误

转载 作者:可可西里 更新时间:2023-11-01 06:01:03 24 4
gpt4 key购买 nike

我正在尝试使用我的代码以及一些外部库和依赖项为 iOS 创建我自己的 POD。附带的示例使用 XCODE 正确编译和构建应用程序。

但是当我要验证时:

$> pod lib lint --allow-warnings --verbose --no-clean

我得到这个错误的代码。这似乎是与该方案相关的架构问题,但我没有运气找出设置中的错误。

** BUILD FAILED **


The following build commands failed:
Ld /Users/marcsu/Library/Developer/Xcode/DerivedData/App-eszacdypuufiakgbloohgxurnwhy/Build/Intermediates/App.build/Release-iphonesimulator/App.build/Objects-normal/i386/App normal i386
Ld /Users/marcsu/Library/Developer/Xcode/DerivedData/App-eszacdypuufiakgbloohgxurnwhy/Build/Intermediates/App.build/Release-iphonesimulator/App.build/Objects-normal/x86_64/App normal x86_64
CreateUniversalBinary /Users/marcsu/Library/Developer/Xcode/DerivedData/App-eszacdypuufiakgbloohgxurnwhy/Build/Products/Release-iphonesimulator/App.app/App normal i386\ x86_64
GenerateDSYMFile /Users/marcsu/Library/Developer/Xcode/DerivedData/App-eszacdypuufiakgbloohgxurnwhy/Build/Products/Release-iphonesimulator/App.app.dSYM /Users/marcsu/Library/Developer/Xcode/DerivedData/App-eszacdypuufiakgbloohgxurnwhy/Build/Products/Release-iphonesimulator/App.app/App
CodeSign /Users/marcsu/Library/Developer/Xcode/DerivedData/App-eszacdypuufiakgbloohgxurnwhy/Build/Products/Release-iphonesimulator/App.app
(5 failures)
Testing with xcodebuild.

检查所有依赖项后。问题是在 s.vendored_frameworks

中使用 de GoogleMaps.framework、GoogleMapsCore.framework 和 GoogleMapsBase.framework

还没有解决方案...

最佳答案

经过很长时间的安静后,我们整理出问题所在。我们在 POD 中使用了 GoogleMaps 库,手动包含 GoogleMaps.framework、GoogleMapsBase.framework 和 GoogleMapsCore.framework。 (我们不能将它用作常规的 pod 依赖项,因为它与其他 swift 库有冲突)

我们还使用了 google maps utils 库。 https://github.com/googlemaps/google-maps-ios-utils

我们在 s.public_header_files 引用中将此库的 header 作为公共(public) header 库包括在内。这会导致那些验证错误。

无论如何,如果有人遇到同样的问题,我会把我的 podspec 文件放在这里。谢谢大家,请随时发表评论。

Pod::Spec.new do |s|
s.name = 'Core'
s.version = '0.1.0'
s.summary = 'Core. Core APP for APPS.'


s.description = <<-DESC
Core is the heart of all the APPS instances and APPS. Includes all the major assets and the resources for optimize all the system. Anyway the wind blows.
DESC

s.homepage = 'https://core.git'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Moblie Department' => 'mail@core.com' }
s.source = { :git => 'https://core.git', :tag => s.version.to_s }

s.ios.deployment_target = '8.0'

#tot el codi que s'ha de compilar
s.source_files = 'Core/Classes/**/*.{h,m,swift}',
'Core/PrivateClasses/GoogleAnalyticsServices/*.h',
'Core/PrivateClasses/GoogleConversionTracking/**/*.h',
'Core/PrivateClasses/GoogleMapsUtils/**/*.{h,m}',
'Core/PrivateClasses/ZLib/*.h',
'Core/PrivateClasses/XMLParser/*.h'

s.requires_arc = true

#les classes que seran publiques
s.public_header_files = 'Core/Classes/**/*.h',
'Core/PrivateClasses/GoogleAnalyticsServices/*.h'
'Core/PrivateClasses/GoogleConversionTracking/*.h'
'Core/PrivateClasses/XMLParser/*.h'
'Core/PrivateClasses/ZLib/*.h'



s.framework = 'CoreData','SystemConfiguration', 'Accelerate', 'CoreGraphics', 'CoreLocation', 'CoreText', 'GLKit', 'ImageIO', 'OpenGLES', 'QuartzCore', 'UIKit', 'AdSupport'
s.vendored_framework = 'Core/Dependencies/GoogleMaps.framework', 'Core/Dependencies/GoogleMapsBase.framework', 'Core/Dependencies/GoogleMapsCore.framework', 'Core/Dependencies/Crashlytics.framework', 'Core/Dependencies/Fabric.framework'
s.vendored_libraries = 'Core/PrivateClasses/GoogleAnalyticsServices/*.a', 'Core/PrivateClasses/GoogleConversionTracking/*.a'
s.xcconfig = {'OTHER_LDFLAGS' => '-ObjC',
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
'FRAMEWORK_SEARCH_PATHS' => '$(inherited) $(SRCROOT)',
'HEADER_SEARCH_PATHS' =>'$(inherited) $(SDKROOT)/usr/include/libxml2 $(SRCROOT)',
'ARCHS' => '$(inherited)',
'VALID_ARCHS' =>'$(inherited)'}

s.library = 'z', 'c++', 'xml2'

s.resource_bundles = {
'Core' => ['Core/**/*.{png,jpg,xib,strings}']
}


s.dependency 'Floaty', '~> 3.0.0'
s.dependency 'Charts', '~> 3.0.2'

s.dependency 'AFNetworking', '~> 3.1.0'
s.dependency 'MBProgressHUD'
s.dependency 'FBSDKLoginKit', '~> 4.11'
s.dependency 'FBSDKShareKit', '~> 4.11'
s.dependency 'NSHash', '~> 1.1'
s.dependency 'UITextField+Shake', '~> 1.1'
s.dependency 'UIView+Shake', '~> 1.1'
s.dependency 'SVPullToRefresh'
s.dependency 'SDWebImage', '~> 3.8'
s.dependency 'AQSInstagramActivity', '~> 0.1'
s.dependency 'AQSTwitterActivity', '~> 0.1'
s.dependency 'SSZipArchive', '~> 1.8.1'
s.dependency 'UIAlertView+Blocks', '~> 0.9'
s.dependency 'UIActionSheet+Blocks', '~> 0.9'
s.dependency 'FSLineChart', '0.1.4'
s.dependency 'PESGraph', '~> 0.2'
s.dependency 'UIScrollView+Direction', '~> 1.0'
s.dependency 'SMCalloutView', '~> 2.1'
s.dependency 'EDSemver', '~> 0.3'
s.dependency 'UIButton+MiddleAligning'
s.dependency 'UIView+Border', '~> 1.0'

s.dependency 'LCBannerView'
s.dependency 'XLForm'
s.dependency 'MBProgressHUD'
s.dependency 'sqlite3'

end

关于ios - COCOAPODS 验证 i386 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45737258/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com