Closed larsblumberg closed 8 years ago
@larsblumberg Could you upload a demo project that would demonstrate the issue?
@larsblumberg Also try http://stackoverflow.com/questions/29933691/ibdesignable-from-external-framework and let me know if it works: I'll update the README.
Uploaded a simple project, it just has a CocoaPods dependency to ShortcutRecorder and a SRRecorderControl
added to its storyboard: https://github.com/larsblumberg/shortcutrecorder-cocoapods-demo
I didn't have success when following the steps from the cited stackoverflow answer. I'm not even sure if I applied the suggestion correctly.
Branch issue-58 fixes both issues (*) – the control not appearing at runtime and in the storyboard. Great! Will you merge to master?
(*) I've updated https://github.com/larsblumberg/shortcutrecorder-cocoapods-demo to use the issue-58 branch to test.
PS: Xcode says that there's a [super dealloc]
missing in PTKeyCodeTranslator.m
/ (void)dealloc{}
Hmm, I don't really support PT these days. I'll see into this issue though.
Overall, I'd suggest to find a modern alternative to register global shortcuts.
I personally don't use the PT feature. Xcode had me just pointed to that issue.
I wonder if it's possible with CocoaPods to opt out this framework from building.
@larsblumberg Merged and released 2.16
@Kentzo Thank you very much!
@Kentzo It's possible to opt out PT if you create a Core subspec. By then only specifying pod 'ShortcutRecorder/Core'
CocoaPods would install the core part w/o PTHotKey.
See here: https://github.com/jverkoey/nimbus/blob/master/Nimbus.podspec and also here: http://stackoverflow.com/questions/20345566/how-do-you-install-a-pods-sub-spec-without-installing-the-whole-pod
@larsblumberg PR is welcome :)
Will prepare a PR
I would prefer using CocoaPods over a git submodule. Did anybody have success in doing so?
When I add a dependency to my
Podfile
Xcode will spit out this error when running the app that makes use of a
SRRecorderControl
in its storyboard:Additionally, the control is not displayed in the storyboard. Xcode shows this error here: