cocoapod - Reachability error #620

Closed
chilambu opened this Issue Oct 26, 2012 · 4 comments

Projects

None yet

3 participants

@chilambu

I just tried sharekit in rubymotion. I added pods ShareKit/Facebook and when i run rake , i got the following error.can u please help me to get out of this error.i installed cocoapods 0.15.1 , ios - 6.

In My Rakefile,

-- coding: utf-8 --

$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'motion-cocoapods'

Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'sharekit'
# app.vendor_project('vendor/shareKit', :xcode)
app.pods do
pod 'ShareKit/Facebook'
pod 'ShareKit/Twitter'
end
end

** BUILD FAILED **

The following build commands failed:
CompileC build/Pods.build/Release-iphonesimulator/Pods.build/Objects-normal/i386/Reachability.o Reachability/Reachability.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
rake aborted!

@alloy
CocoaPods member

Can you run it with rake COCOAPODS_VERBOSE=1 and gist the complete output?

@railsfactory-chilambarasan

HI Alloy, when i run rake COCOAPODS_VERBOSE=1 got the following , kindly help me to fix this

Resolving dependencies of

Finding added, modified or removed dependencies:

  • AFNetworking
  • ShareKit/Twitter

Resolving dependencies for target `default' (iOS 6.0)

  • AFNetworking (= 1.0)
  • ShareKit/Twitter (= 2.0)
    • JSONKit (= 1.5pre)
    • SSKeychain (= 0.1.4)
    • Reachability (= 3.0.0)

Downloading dependencies

-> Using AFNetworking (1.0)

-> Using JSONKit (1.5pre)

-> Using Reachability (3.0.0)

-> Using ShareKit (2.0)

-> Using SSKeychain (0.1.4)

Generating support files

  • Running pre install hooks
  • Generating project
  • Installing targets
    • Generating xcconfig file at `./Pods/Pods.xcconfig'
    • Generating prefix header at `./Pods/Pods-prefix.pch'
    • Generating copy resources script at `./Pods/Pods-resources.sh'
  • Running post install hooks
  • Writing Xcode project file to `./Pods/Pods.xcodeproj'
  • Writing lockfile in `./Podfile.lock' Build ./build/iPhoneSimulator-6.0-Development Build vendor/Pods Build settings from command line: ARCHS = i386 CONFIGURATION_BUILD_DIR = .build IPHONEOS_DEPLOYMENT_TARGET = 6.0 SDKROOT = iphonesimulator6.0

=== BUILD NATIVE TARGET Pods OF PROJECT Pods WITH CONFIGURATION Release ===
Check dependencies

ProcessPCH /var/folders/26/_cq9hzps75v72txr0fjg_qg40000gr/C/com.apple.Xcode.504/SharedPrecompiledHeaders/Pods-prefix-alwxtcgxsebrggbfrcnrrrxgsqxv/Pods-prefix.pch.pth Pods-prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/test/Desktop/draw/vendor/Pods
setenv LANG en_US.US-ASCII

/Users/test/Desktop/draw/vendor/Pods/Reachability/Reachability.m:186:34: warning: assigning retained object to unsafe property; object will be released after assignment [-Warc-unsafe-retained-assign]
self.reachabilitySerialQueue = dispatch_queue_create("com.tonymillion.reachability", NULL);

^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/test/Desktop/draw/vendor/Pods/Reachability/Reachability.m:191:9: error: 'release' is unavailable: not available in automatic reference counting mode
dispatch_release(self.reachabilitySerialQueue);
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/dispatch/object.h:183:35: note: expanded from macro 'dispatch_release'
_dispatch_object_validate(_o); [_o release]; })
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:36:1: note: declaration has been explicitly marked unavailable here

  • (oneway void)release NS_AUTOMATED_REFCOUNT_UNAVAILABLE; ^ /Users/test/Desktop/draw/vendor/Pods/Reachability/Reachability.m:191:9: error: ARC forbids explicit message send of 'release' dispatch_release(self.reachabilitySerialQueue); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/dispatch/object.h:183:35: note: expanded from macro 'dispatch_release' _dispatch_object_validate(_o); [_o release]; }) ^ ~~~~~~~ /Users/test/Desktop/draw/vendor/Pods/Reachability/Reachability.m:196:5: error: 'release' is unavailable: not available in automatic reference counting mode dispatch_release(self.reachabilitySerialQueue); ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/dispatch/object.h:183:35: note: expanded from macro 'dispatch_release' _dispatch_object_validate(_o); [_o release]; }) ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:36:1: note: declaration has been explicitly marked unavailable here
  • (oneway void)release NS_AUTOMATED_REFCOUNT_UNAVAILABLE; ^ /Users/test/Desktop/draw/vendor/Pods/Reachability/Reachability.m:196:5: error: ARC forbids explicit message send of 'release' dispatch_release(self.reachabilitySerialQueue); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/dispatch/object.h:183:35: note: expanded from macro 'dispatch_release' _dispatch_object_validate(_o); [_o release]; }) ^ ~~~~~~~ 1 warning and 4 errors generated.

** BUILD FAILED **

The following build commands failed:
CompileC build/Pods.build/Release-iphonesimulator/Pods.build/Objects-normal/i386/Reachability.o Reachability/Reachability.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
rake aborted!
Command failed with status (65): [/usr/bin/xcodebuild -project "Pods.xcodepr...]

Tasks: TOP => default => simulator => build:simulator
(See full trace by running task with --trace)

@alloy
CocoaPods member

You seem to be running into this issue: https://github.com/CocoaPods/Specs/issues/352.

Please specify your Reachability dependency like so pod 'Reachability', :head until a new version is released.

@alloy alloy closed this Oct 26, 2012
@railsfactory-chilambarasan

HI Alloy,

Thanks for your response my issue is solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment