ios - Cannot build manual ref count CocoaPod [Resolved] -
i have ios cocoapod couple of years old pod, , several years older reusable component. built older versions of xcode. developed , remains "manual reference counting". trying import "new" project (actually reconstructed old project , manual reference counting), cannot build.
as said, enclosing project manual reference counting , compiles ok way no pods installed. "automatic reference counting" set "no" in "build settings".
however, even though exact same build settings "no" value present in pods project, generates compile script -fobjc-arc
, , calls retain
, release
flagged errors. (eg, error: 'release' unavailable: not available in automatic reference counting mode
.)
the version of xcode 6.0.1.
the version of pod
0.34.4 (installed fresh yesterday).
the podspec pod in question:
pod::spec.new |s| s.name = "libxxx" s.version = "1.0" s.summary = "exchange library xyz." s.description = "static library pod xxx framework." s.homepage = "http://example.com" s.license = { :type => 'mit', :text => 'copyright 2012 xyz' } s.author = { "bill nye" => "bnye@example.com" } s.source = { :git => 'https://code.example.com/ios/xxx.git', :tag => '1.0' } s.platform = :ios s.source_files = 'staticlib/headers/*.h' s.preserve_paths = 'staticlib/libxxx.a' s.library = 'xchangea' s.xcconfig = { 'library_search_paths' => '$(pods_root)/libxxx/staticlib' } s.dependency 'libsignaturetoken' end
i tried adding s.requires_arc = false
pod spec (and performing pod update
), nothing changed. tried s.compiler_flags = '-fno-objc-arc'
, no success.
so, how convince xcode compile pod manual reference counting?
resolved
apparently "unrelated" problems during pod update
caused fail silently without configuring compile mode info. running pod update --verbose
repeatedly helped smoke out problems.
you need use s.requires_arc = false
this documented here. default changed false
true
. error should appear if run pod spec lint
.
Comments
Post a Comment