Comments (24)
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
from iglistkit.
Thanks @Sherlouk!
from iglistkit.
@rnystrom @ishabazz Flagging to be closed?
There's now an example in the pack, and the issue at hand was seemingly resolved.
from iglistkit.
π
will re-open if needed
from iglistkit.
I'm still getting this warning intermittently. I'm using pods 1.6.1. Why is this happening and how do I fix it.
from iglistkit.
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.
from iglistkit.
Not clear if this is:
- a bug in IGListKit
- a bug in CocoaPods
- an issue with project setup
from iglistkit.
Off the bat I get an Xcode warning in the sample project:
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/rnystrom/Library/Developer/Xcode/DerivedData/IGListStickerDemo-cherwvpgwwdqmjhkvyhkxnqnciyx/Build/Products/Debug-iphonesimulator/IGListKit/IGListKit.framework/IGListKit
Seeing the same error message as @ishabazz
dyld: Library not loaded: @rpath/IGListKit.framework/IGListKit
Referenced from: /Users/rnystrom/Library/Developer/CoreSimulator/Devices/68FD0653-60FD-438C-BF3E-C6753A5F683E/data/Containers/Bundle/Application/4EB30904-90A4-4E77-A205-B59794CA7312/IGListStickerDemo.app/PlugIns/MessagesExtension.appex/MessagesExtension
Reason: image not found
from iglistkit.
After $ pod install
I see some weird CocoaPods warnings:
[!] The `IGListStickerDemo [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-IGListStickerDemo/Pods-IGListStickerDemo.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `IGListStickerDemo [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-IGListStickerDemo/Pods-IGListStickerDemo.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
edit: I manually added IGListKit.framework
to the message extension target, it failed to build. I deleted the framework and reran $ pod install
then ran the app again (it was still installed) and everything worked. I saw the "Hello world" in the message app.
from iglistkit.
Ok. To recap, you removed it from the Podfile, ran pod install and manually installed the framework?
from iglistkit.
@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 $ pod install
again. This definitely isn't the answer but might be a clue to what's going on.
from iglistkit.
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
from iglistkit.
Fixing the warning in #79
from iglistkit.
@ishabazz ok now I can't get it to happen at all anymore. I ran
$ pod deintegrate
$ rm -rf ~/Library/Developer/Xcode/DerivedData
$ pod install
It installs and runs on multiple simulators and device.
I believe my Podfile is unchanged from what you originally sent:
target 'IGListStickerDemo' do
use_frameworks!
pod 'IGListKit'
end
target 'MessagesExtension' do
use_frameworks!
pod 'IGListKit'
end
from iglistkit.
hmm...tried that but mine still crashes. Your Podifle is the same as mine
from iglistkit.
@ishabazz a couple other configs I tried that seemed to work:
- Remove
IGListKit
from the main target since its empty - Remove
use_frameworks!
from iglistkit.
Progress! I can get the demo project to run without crashing. I get a compiler error when trying "import IGListKit" though.
from iglistkit.
@ishabazz any update on this? Not really sure what to do here Β―_(γ)_/Β―
from iglistkit.
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?
from iglistkit.
Compiles fine until you try to import IGListKit, then doesn't compile and gives a "No such module 'IGListKit' found"
Hm... π€ Sounds like this is probably a project setup issue... ?
from iglistkit.
@rnystrom Relating to my previous comment, how would you feel about adding extension examples into this repo? Happy to make modifications/make them more useful!
my fork contains an example for both a Today Extension and an iMessage Extension.
from iglistkit.
@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?
from iglistkit.
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
from iglistkit.
@ishabazz -- This should be fixed with CocoaPods 1.1
http://blog.cocoapods.org/CocoaPods-1.1.0/
from iglistkit.
Related Issues (20)
- Scroll to top on iOS 15 devices has glitch or a behaviour different in the 'main' branch respect to '4.0.0' version for expanded items.
- Xcode 14 + SPM integration = no SwiftUI previews HOT 2
- Refresh without Animation HOT 2
- I found that replacing the IGListCollectionView with a UICollectionView deadlocks the main thread γ I have sample projectsγ
- Need tagged releases in order to use IGListKit SPM package as a dependency of another package HOT 1
- crash with ios 16.4 when build with xcode 14.3 HOT 10
- Crash With IGListDiffKit SIGABRT ABORT HOT 2
- _visibleSectionIndices not being cleaned up in time
- Unable to install via Swift Package Manager HOT 6
- It's time to release a new version. HOT 9
- Unable to find a specification for `IGListSwiftKit` HOT 1
- Long press + Reorder cell
- conversion of 'long' to 'NSString * _Nullable' is disallowed with ARC HOT 1
- Unable to build project using Xcode 15: Undefined symbols
- Xcode14.3 Failed to create 0x88 image slot (alpha=1 wide=1) (client=0xd7743321) [0x5 (os/kern) failure]
- XCode 15 Debug iOS 14.3 iphone will crash, how to solution it ?
- Help find cause wrong collectionview cell height size after perform update HOT 1
- Privacy Manifest HOT 4
- [feature] Implement Viewer Search Functionality for Stories HOT 1
- Issue with changed message and pop up notification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iglistkit.