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
could not build Objective-C module since beta.4 #4950
Comments
Have you tried to clean your build folder and re-build from scratch? |
Yes I did two times. 1.0.0.3 has no problem. |
In that case, could you share a project we can use to debug? |
I'm experiencing something similar with beta 4: error: 'RxCocoa/RxCocoa.h' file not found
#import <RxCocoa/RxCocoa.h>
^
<unknown>:0: error: could not build Objective-C module 'RxCocoa' Podfile: source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
use_frameworks!
target 'The Target' do
pod 'AsyncDisplayKit', :git => 'https://github.com/facebook/AsyncDisplayKit'
pod 'Fabric'
pod 'Crashlytics'
pod 'RxCocoa'
end Worked without a problem in beta 2 & 3 |
Same here! I tried rebuilding, cleaning and removing derived data, but no results... |
Can anyone share a project? |
I can't because it's commercial project. |
Then boil it down to something simpler that we can run. Otherwise, were less likely to investigate the issue. |
@segiddins https://github.com/ejensen/CocoaPodsBeta4Issue is a boiled down project that displays the issue. The 1st commit uses CP 1.0 beta 3. The 2nd commit updates to CP 1.0 beta 4, which causes the project to fail compilation. |
I am seeing the same or something very similar. I have two mixed Swift/ObjC projects where one is dependent on the other. CocoaPods has always added the dependent project to the workspace even though it is already there, and lately it then complains of double references. Works good, though. But since 1.0.0.b4 it will not import modules such as Alamofire anymore. Only thing I need to do is gem update to 1.0.0.b4 (from 1.0.0.b3) and do a "pod install" and it will fail. I am working on getting this project open sourced, so while I cannot share it openly just yet, I can share it privately with you, and I'd love to do a session together to try to find it together (I'm on GMT+1) |
@mrackwitz any interest in looking at this one? |
This project is just a template Swift project from Xcode with Atlas as the only dependency. It built fine on Cocoapods 0.39, but broke with 1.0.0b4 and 1.0.0b5. |
I have created a repo with a demo target, which demonstrates an issue with tests targets. |
I'm having this issue on 1.0.0 release. |
Having the same issue also on 1.0.0 release. Can someone help fix this please? |
Having the same issue also on 1.0.0 release. Can someone help fix this please? |
It's not yet confirmed to which extent this is an actual issue with CocoaPods. With the latest release some things got re-aligned, which might have caused in some cases that previously accidentally working podspecs don't work anymore. If you can still reproduce this issue, even after cleaning derived data, cleaning the CocoaPods cache, nuking the local Pods directory and installing again from scratch, then please report what podspec is causing issues for you, in the best case including a minimum reproduce sample project. |
I had this issue, I cleared
Haven't been able to get past this. I also wasn't able to create a project that had the same issue despite using all the same pods and identical Podfile, however it was Podspec here: https://github.com/segment-integrations/analytics-ios-integration-mixpanel/blob/master/Segment-Mixpanel.podspec |
I was experiencing this issue but have now solved it. The issue is with Derived Data which is why it can't be replicated in a new project. To fix it, in XCode go to Window->Projects, find your project in that list (usually the top one if it's the open one). Then click the Delete button next to the Derived Data section. Rebuild should work. |
So, perhaps a bit late, but what I saw in 1.0.0b4 is solved in 1.0.0. :-) |
@aronspringfield Your answer solved my problem, thanks! |
On JetBrains App Code, I got around the problem with the following steps:
|
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍 |
I have the same problem |
1.0.0.beta.3 has no problem. Problem seens alive since beta.4
Report
What did you do?
Tried build my iOS project
What did you expected to happen?
Build successfully
What happened instead?
Podfile
The text was updated successfully, but these errors were encountered: