-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
include of non-modular header JSQSystemSoungPlayer error #1497
Comments
I have actually had similar experiences with this problem. The issue is that Swift doesn't play nice with importing non-modular frameworks into frameworks. Essentially, you will only run into this problem when bundling a framework inside another. There is a simple solution, however it requires some work @jessesquires Both projects ( |
@Mackarous 👍 👍 👍 👍 |
Thank you guys! :) |
Hey sorry for the delay, Upon further investigation, it turns out that
This will use frameworks instead of static libraries for the included projects, which in the case of Summary of changes to
|
Thanks for the investigation and info @Mackarous ! Huge help! 🙇 This was what I expected to hear. We'll have to target this change for version |
I believe this is incorrect. As stated above JSQMessagesViewController works fine with the use of use_frameworks! flag in the podfile but this is not what I'm doing. JSQMessagesViewController is a dependency of my own pod not a project. I was able to compile my example app by updating JSQSystemSoundPlayer+JSQMessages to include @import JSQSystemSoundPlayer; @Mackarous @jessesquires |
Hey @marcioarantes-ww, I should have elaborated further: The reason this works is because you are importing To ensure that |
@Mackarous got it thanks for clarifying. Looking forward to your next update. |
Thanks @Mackarous ! 🎉 😄 |
+1 for this issue :) |
finally works with cocoapods 0.39.0. Do not use beta :p |
I'm still getting this error. how exactly did you fix it? this is what my podfile looks like source 'https://github.com/CocoaPods/Specs.git' target 'EODPOC' do
pod 'JSQMessagesViewController' end |
is your project structure also using ios 8.0 as the minimum deployment target? When i followed @Mackarous instructions the first time, i had a mismatch and got an error.. but if both the podfile and project are set to 8.0 then it worked |
thanks for the rapid reply (no sarcasm). i tried changing it to 8.0, 9.0, 9.2, etc. I changed the deployment target and platform values to match but still get the error. this was working previously but just no longer compiles |
+1 on the "JSQSystemSoundPlayer/JSQSystemSoundplayer.h file not found" error using cocoapods 1.0.0.rc1. EDIT: |
Encountered this with CocoaPods 1.0.0. You need to |
It seems to work for me (for now) using Swift 2.2 with Xcode 7.3.1 and CocoaPods 1.0. It currently builds both in simulator and on device just using |
It work for me ( using Swift 2.2 with Xcode 7.3.1 and CocoaPods 1.0 ) but only in simulator , in device Im getting the following errors: 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/containers/Bundle/Application/.../Frameworks/JSQMessagesViewController.framework> (loaded)' with name 'JSQMessagesViewController' |
Fixed by #1649 |
I still got same issue (using swift 2.2 , xcode 7.3.1 and cocoaPods 1.0), it work only in simulator. In my devide (iphone 6 , ver 9.3.2). My pods file also change to "platform :ios, '8.0'
|
The fix is on |
it was working perfectly but when i update my pod file and reinstall, i got same issue (using swift 3.1 , xcode 8.3 and cocoaPods 1.0), 'JSQSystemSoundPlayer/JSQSystemSoundPlayer.h' file not found. |
I want to use JSQMessagesViewController as a dependency to my swift pod. When I build my example app I get the old non-modular header error related to the JSQSystemSoundPlayer but I don't know how to get around it with XCode 7.
Podspec:
s.dependency 'JSQSystemSoundPlayer'
s.dependency 'JSQMessagesViewController', '7.2.0'
#Also tried 5.3.2
The text was updated successfully, but these errors were encountered: