Generating Cocoapods Module Error [ARC] xcodebuild: Bad exit code returned

I am starting to quietly do iOS development, this is my first question on SO. At my company, we are trying to convert our application to a Cocoapods module to help build different applications with similar functionality. So far we have tried to compile the POD module, but when we try to import classes from the module in the workspace. An example is attached, we get "Failed to create module ProjectCore"

#import <ProjectCore/myProjectCoreClass.h>

      

It is not possible to get more information about where the building is not working. Am I missing something? Is there a way to find out where the build process is happening?

Thank.

After carefully checking the manual and trying to check the pile for the building:

pod lib lint --verbose --allow-warnings

      

My project only uses ARC in some modules, so the podspec looks like this.

Pod::Spec.new do |s|
s.name             = 'ProjectCore'
s.version          = '0.1.3'
s.summary          = 'A short description of ProjectCore.'


s.description      = 'This is our core a git with cocoapods - ProjectCore.'

s.homepage         = 'https://bitbucket.org/projectcore/ios_projectcore'
s.license          = { :type => 'MIT', :file => 'LICENSE' }
s.author           = { 'Comapny' => 'info@company.com' }
s.source           = { :git => 'https://bitbucket.org/projectcore/ios_projectcore.git', :tag => s.version.to_s }

s.ios.deployment_target = '9.0'


s.frameworks = 'CoreData', 'SystemConfiguration', 'Accelerate', 'CoreGraphics', 'CoreLocation', 'CoreText', 'GLKit', 'ImageIO', 'OpenGLES', 'QuartzCore', 'UIKit', 'AdSupport', "GoogleMapsCore", "GoogleMapsBase", "GoogleMaps", "Crashlytics", "Fabric"
s.library = 'z', 'c++', 'xml2'
s.vendored_frameworks   = "StaticLibraries/GoogleMapsServices/GoogleMaps.framework", "StaticLibraries/GoogleMapsServices/GoogleMapsBase.framework", "StaticLibraries/GoogleMapsServices/GoogleMapsCore.framework", 'StaticLibraries/FabricCrashlytics/Crashlytics.framework', 'StaticLibraries/FabricCrashlytics/Fabric.framework'
s.vendored_libraries = 'StaticLibraries/GoogleAnalyticsServices/*.a', 'StaticLibraries/GoogleConversionTracking/*.a'
s.xcconfig = {'OTHER_LDFLAGS' => '-ObjC', 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES', 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2'}


arc_files = 'ProjectCore/**/ActionMenuHelper.{h,m}',
'ProjectCore/**/UnitsFormatter.{h,m}',
'ProjectCore/**/BSKeyboardControls/**/*.{h,m}',
'ProjectCore/**/CellMenuLeft.{h,m}',
'ProjectCore/**/CheckInternetConnection.{h,m}',
(...)

s.requires_arc = false
s.source_files = 'ProjectCore/**/*.{h,m,swift}','StaticLibraries/GoogleAnalyticsServices/*.h','StaticLibraries/GoogleConversionTracking/**/*.h','StaticLibraries/ZLib/*.h','StaticLibraries/XMLParser/*.h'

s.exclude_files = arc_files
s.subspec 'ARC' do |sp|
sp.requires_arc = true
sp.source_files = arc_files
end

s.resource_bundle  = { 'ProjectCore' => 'ProjectCore/**/*.{png,jpg,xib,strings}' }


s.dependency 'FBSDKLoginKit', '~> 4.11'
s.dependency 'FBSDKShareKit', '~> 4.11'
s.dependency 'NSHash', '~> 1.1'
(...)

end

      

But my only mistake:

- ERROR | [ProjectCore/ARC] xcodebuild: Returned an unsuccessful exit code.

      

+3


source to share


1 answer


Building your own CocoaPod is pretty straight forward. If you already have a separate component, you are most there. This guide is an overview of the entire process, with the other guides in this section serving as a deeper dive for more advanced users.



https://guides.cocoapods.org/making/making-a-cocoapod.html

+1


source







All Articles