Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when used with use_frameworks! #7

Open
ardarda opened this issue Dec 15, 2015 · 6 comments
Open

Crash when used with use_frameworks! #7

ardarda opened this issue Dec 15, 2015 · 6 comments

Comments

@ardarda
Copy link

ardarda commented Dec 15, 2015

Trying to use swift pods in my objective-c project, OpenSans pod leads this crash pasted below;

My Podfile:

platform :ios, '8.0'

use_frameworks!

pod 'Charts'
pod 'SimulatorStatusMagic', :configurations => ['Debug']
pod 'AFNetworking', '> 2.5'
pod 'SDWebImage', '
> 3.7'
.
.
.

Crash log:

2015-12-15 18:46:42.072 firmeye[43989:235646] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSBundle initWithURL:]: nil URL argument'
*** First throw call stack:
(
0 CoreFoundation 0x000000010caafe65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010be0edeb objc_exception_throw + 48
2 CoreFoundation 0x000000010caafd9d +[NSException raise:format:] + 205
3 Foundation 0x000000010ba4877b -[NSBundle initWithURL:] + 87
4 Foundation 0x000000010ba4882a +[NSBundle bundleWithURL:] + 45
5 OpenSans 0x0000000109fce63f KOSLoadFontWithName + 191
6 OpenSans 0x0000000109fcea2c __69+[UIFont(OpenSans)
.
.

@kylef
Copy link
Member

kylef commented Dec 15, 2015

This pod will need to be updated similarly to CocoaPods-Fonts/Montserrat#1

Unfortunately I don't have time at the moment, but any pull requests would be welcome.

@ardarda
Copy link
Author

ardarda commented Dec 16, 2015

Thanks for pointing out the route. Then I will try to contribute which will be my first:)

@vodovozovge
Copy link

@kylef you have outdated version specified in podspec.
this commit 0be3f18 already includes required fix

@fruitcoder
Copy link

please update the podspec. For now I'm going with
pod 'OpenSans', :git => 'https://github.com/CocoaPods-Fonts/OpenSans.git', :commit => '0be3f18'

@greggmojica
Copy link

+1 Please merge

@0x7061
Copy link

0x7061 commented Jul 13, 2017

+1

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

No branches or pull requests

6 participants