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
IGListKitCrashes when used in an iMessages Extension #77
Comments
I've definitely seen this error before, but that was using a non-Swift library in a Swift app using Buck for dep management. Might be something similar though. |
Not clear if this is:
|
Off the bat I get an Xcode warning in the sample project:
Seeing the same error message as @ishabazz
|
After
edit: I manually added |
Ok. To recap, you removed it from the Podfile, ran pod install and manually installed the framework? |
@ishabazz I actually didn't remove it from the Podfile at first, just added to Linked Libraries and Frameworks. Then I built, got compiler errors, removed the framework from Linked Libraries and Frameworks, then did |
I looked into that initial compiler warning and it leads here https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/ExtensionOverview.html#//apple_ref/doc/uid/TP40014214-CH2-SW6 |
Fixing the warning in #79 |
@ishabazz ok now I can't get it to happen at all anymore. I ran
It installs and runs on multiple simulators and device. I believe my Podfile is unchanged from what you originally sent:
|
hmm...tried that but mine still crashes. Your Podifle is the same as mine |
@ishabazz a couple other configs I tried that seemed to work:
|
Progress! I can get the demo project to run without crashing. I get a compiler error when trying "import IGListKit" though. |
@ishabazz any update on this? Not really sure what to do here ¯_(ツ)_/¯ |
Still a problem. Compiles fine until you try to import IGListKit, then doesn't compile and gives a "No such module 'IGListKit' found" Did it work for you? |
Hm... 🤔 Sounds like this is probably a project setup issue... ? |
Created a very basic example over on my fork (here) of an iMessage extension. I've downloaded your demo repository and it seems that it doesn't have the 'Embed Pods Frameworks' run script which is usually generated by CocoaPods - this would most likely explain the error (and when you add it, seems to work) EDIT: I've created a pull request to your repository which is working for me (clean your workspace if you pull it down) link |
Thanks @Sherlouk! |
@Sherlouk yes yes yes yes yes! That would be amazing! Should we clean up and add your fork to the example or should we make something new? |
By the way. When trying to submit the build to TestFlight I ran into this issue http://stackoverflow.com/questions/40005130/error-itms-90685-cfbundleidentifier-collision-there-is-more-than-one-bundle Still working on a resolution |
@ishabazz -- This should be fixed with CocoaPods 1.1 |
Summary: Offering this open to a bit of a discussion based on the comments at #77. - Created two new schemes (IGListKitTodayExample, IGListKitMessageExample) in which respectively correspond to their app extension. - Updated the Podfile to ensure they have IGListKit as a dependency - Added a super simple example reusing the `LabelSectionController` from the main app Done more as a 'yes it can be done' as opposed to 'look at what can be done' hence the basic functionality but I can see ways to improve if necessary! - [x] All tests pass. Demo project builds and runs. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md) Closes #112 Differential Revision: D4066698 Pulled By: rnystrom fbshipit-source-id: 64c5cc6f34cc9107f4f6e52ebc57596101eb695c
👍 will re-open if needed |
I'm still getting this warning intermittently. I'm using pods 1.6.1. Why is this happening and how do I fix it. |
New issue checklist
README
and documentationGeneral information
Running iMessage Apps which have IGListKit included via CocoaPods results in the app crashing on launch with the error like the following: dyld: Library not loaded: @rpath/IGListKit.framework/IGListKit
Referenced from: /Users/demo/Library/Developer/CoreSimulator/Devices/5C343568-A532-405F-8B65-52A049827328/data/Containers/Bundle/Application/AA18B7D3-48C4-4958-A14C-C056A309D6D8/IGListStickerDemo.app/PlugIns/MessagesExtension.appex/MessagesExtension
Reason: image not found
Check out https://github.com/ishabazz/IGListKitMessagesExtensionDemo for a sample project that exhibits this error.
The text was updated successfully, but these errors were encountered: