Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

BlocksKit on CocoaPods #78

Closed
chrischenyc opened this issue Apr 26, 2012 · 11 comments
Closed

BlocksKit on CocoaPods #78

chrischenyc opened this issue Apr 26, 2012 · 11 comments

Comments

@chrischenyc
Copy link

Are you guys maintaining the repository on CocoaPods?

pod search blocks
==> BlocksKit (0.5.0, 0.9.0, 0.9.5, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6)
The Objective-C block utilities you always wish you had.

I used the latest version, worked with some UIAlertView category method. It works good on simulator, on device (with debug mode). But after I build the ipa in Release mode, it crashed, saying doesNotRecognizeSelector

Okay, I grab the source code and recompiled the build, this time it worked. So the static library build in CocoaPods must have something wrong.

It's very similar to issue 63 (#63)

@zwaldowski
Copy link
Collaborator

We're heavily involved with CocoaPods. 1.0.6 is indeed the latest BlocksKit release, however, have you updated to the latest A2DynamicDelegate? That's at 1.0.8.

@lexrus
Copy link

lexrus commented Apr 27, 2012

I did update A2DynamicDelegate.podspec to 1.0.8, but the app crushes again.

@chrischenyc
Copy link
Author

yeah, my A2DynamicDelegate is on 1.0.8. You guys shall really look into this, it's when using [UIAlertView showAlertViewWithTitle...] the app got crash.

@zwaldowski
Copy link
Collaborator

We have some things to help fix this in the next release, sorry it's been such an inconvenience. It has to do with dead code stripping, Xcode is being a little overzealous in Releas builds.

@christineyen
Copy link

Seeing the same thing with the UIWebView, MFMailComposeViewController, and MFMessageComposeViewController categories as well, though A2DynamicDelegates used directly / elsewhere in the project seem to work fine. Thanks for looking into it!

@lexrus
Copy link

lexrus commented Jun 12, 2012

@zwaldowski The new release 1.5 was published. Is this issue still alive or fixed?

@zwaldowski
Copy link
Collaborator

The version on CocoaPods is up-to-date, so I call it fixed. I wasn't even sure it was broken. Run "pod setup" to update the repo or reinstall CocoaPods ("gem install cocoapods") to get an updated version that syncs automatically.

@lexrus
Copy link

lexrus commented Jun 13, 2012

Okay, I created a test project for UIAlertView categories and published a AD HOC release. Works well on my iPhone 4.
I think we may close this issue.

@chrischenyc
Copy link
Author

yeah, the latest version really works.

@yougot
Copy link

yougot commented Aug 6, 2012

This problem appear in my environment.

pod --version
0.10.0

pod install
Updating spec repo `master'
Installing A2DynamicDelegate (2.0.1)
Installing AFNetworking (1.0RC1)
Installing BlocksKit (1.5.1)
Installing GDataXML-HTML (1.0.0)
Installing SDWebImage (2.6)
Installing SVProgressHUD (0.7)
Installing TestFlightSDK (1.0)
Installing XMLReader (0.0.1)
Installing libffi (3.0.11)

problem method is this.

[UIAlertView alertViewWithTitle:@"xxx" message:@"yyyy"];

it works well on simulator and on device (debug mode). but on adhoc mode it crash. does anyone know solution ?

@kukat
Copy link

kukat commented Aug 9, 2012

@yougot
Same crashes on Adhoc, but works fine on debug mode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants