dfmuir / KINWebBrowser

A web browser module for your iOS apps.
Other
838 stars 167 forks source link

Share button crash #16

Open jehartley opened 9 years ago

jehartley commented 9 years ago

When you select a link in the rss feed it goes to the page just fine. The stop, refresh, back and forward buttons work as they should. However, when you select the share button in the bottom right it crashes the app. Any solution or ideas why?

jehartley commented 9 years ago

2015-02-28 10:56:37.223 Kenna[1967:698970] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSBundle initWithURL:]: nil URL argument' * First throw call stack: ( 0 CoreFoundation 0x0000000108871f35 exceptionPreprocess + 165 1 libobjc.A.dylib 0x000000010850abb7 objc_exception_throw + 45 2 CoreFoundation 0x0000000108871e6d +[NSException raise:format:] + 205 3 Foundation 0x000000010811641a -[NSBundle initWithURL:] + 87 4 Foundation 0x00000001081164c9 +[NSBundle bundleWithURL:] + 45 5 Kenna 0x000000010669a5c3 -[TUSafariActivity activityTitle] + 147 6 UIKit 0x00000001090a611b -[UIActivityGroupViewController collectionView:cellForItemAtIndexPath:] + 163 7 UIKit 0x000000010928c41b -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 244 8 UIKit 0x000000010928db54 -[UICollectionView _updateVisibleCellsNow:] + 3445 9 UIKit 0x0000000109291801 -[UICollectionView layoutSubviews] + 243 10 UIKit 0x0000000108cd7973 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 521 11 QuartzCore 0x0000000107150de8 -[CALayer layoutSublayers] + 150 12 QuartzCore 0x0000000107145a0e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380 13 UIKit 0x0000000108ccb847 -[UIView(Hierarchy) layoutBelowIfNeeded] + 611 14 UIKit 0x0000000109068382 -[_UIAlertControllerAnimatedTransitioning animateTransition:] + 484 15 UIKit 0x0000000108d621d3 56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 1842 16 UIKit 0x0000000108c81331 _applyBlockToCFArrayCopiedToStack + 314 17 UIKit 0x0000000108c811ab _afterCACommitHandler + 516 18 CoreFoundation 0x00000001087a6dc7 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION** + 23 19 CoreFoundation 0x00000001087a6d20 CFRunLoopDoObservers + 368 20 CoreFoundation 0x000000010879cb53 CFRunLoopRun + 1123 21 CoreFoundation 0x000000010879c486 CFRunLoopRunSpecific + 470 22 GraphicsServices 0x000000010c2b39f0 GSEventRunModal + 161 23 UIKit 0x0000000108c5e420 UIApplicationMain + 1282 24 Kenna 0x00000001066785be top_level_code + 78 25 Kenna 0x000000010667869a main + 42 26 libdyld.dylib 0x000000010b21f145 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

chrisp522 commented 9 years ago

I am having the same problem. Any solution yet?

jchesne commented 9 years ago

Same pb here

ghost commented 9 years ago

same problem here, does anyone have a fix?

ghost commented 9 years ago

I deleted the KINWebBrowser files and reinstall them using cocoa pods and the share menu now works fine.

dfmuir commented 9 years ago

This is caused by TUSafariActivity, which seems like it must be installed via CocoaPods. I understand that this is not ideal. I am working on a solution. For now the only solution is to install KINWebBrowser via CocoaPods, or remove TUSafariActivity from your project altogether.

bryandubno commented 9 years ago

Find the "Assets" folder in the TUSafariActivity folder and rename it to "TUSafariActivity.bundle". Drag this bundle and the TUSafariActivity .h and .m files into your project. This will allow you to use the project without CocoaPods.

camchis commented 8 years ago

@bryandubno Thanks a lot. Working perfectly. No need to use CocoaPods.