-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Cannot link framework Xcode warning #7251
Comments
Seems related to the new build system. Will tag it as such. |
I have an app target ("Mockingbird") and Today widget ("InstantBalance"), both of which are getting this. I'm using Swift 3 throughout.
Everything seems to run fine still though. Stack
Plugins
Podfile
|
Are you using the new build system?
…On Wed, Dec 20, 2017 at 9:43 PM Jay Whitsitt ***@***.***> wrote:
I have an app target ("Mockingbird") and Today widget ("InstantBalance"),
both of which are getting this. I'm using Swift 3 throughout.
Target Pods-InstantBalance product Pods_InstantBalance cannot link framework Foundation.framework
Target Pods-Mockingbird product Pods_Mockingbird cannot link framework Foundation.framework
Everything seems to run fine still though.
Stack
CocoaPods : 1.3.1
Ruby : ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
RubyGems : 2.6.14
Host : Mac OS X 10.12.6 (16G29)
Xcode : 9.2 (9C40b)
Git : git version 2.14.3
Plugins
- cocoapods-deintegrate : 1.0.1
- cocoapods-plugins : 1.0.0
- cocoapods-search : 1.0.0
- cocoapods-stats : 1.0.0 (post_install hook)
- cocoapods-trunk : 1.2.0
- cocoapods-try : 1.1.0
Podfile
ENV['COCOAPODS_DISABLE_STATS'] = "true"
platform :ios, '9.3'
use_frameworks!
def core_pods
pod 'Alamofire', '~> 4.5.0'
pod 'SwiftyJSON'
pod 'Bond', '6.3.0'
pod 'KeychainSwift', '~> 8.0'
pod 'PromiseKit'
pod 'Log'
pod 'SnapKit', '~> 3.2.0'
pod 'Koyomi', '~> 1.2'
pod 'Firebase/Core'
pod 'Firebase/Crash'
pod 'Firebase/Performance'
end
def testing_pods
pod 'Quick'
pod 'Nimble', inhibit_warnings: true
pod 'Fakery'
end
target 'Mockingbird' do
project 'Mockingbird', 'Acceptance' => :debug
core_pods
end
target 'MockingbirdTests' do
project 'Mockingbird', 'Acceptance' => :debug
core_pods
testing_pods
end
target 'MockingbirdAcceptanceTests' do
project 'Mockingbird', 'Acceptance' => :debug
core_pods
testing_pods
pod 'KIF'
pod 'KIF/IdentifierTests'
pod 'OHHTTPStubs/Swift'
end
target 'InstantBalance' do
project 'Mockingbird', 'Acceptance' => :debug
core_pods
end
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7251 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAS8YpgiZXFm3so1LBP3C85_YMBg0HrVks5tCWIdgaJpZM4Qx2YY>
.
|
@dnkoutso, I just realized what you meant by that earlier. Yes I am. I can confirm that using the old build system doesn't produce the warning. |
Confirmed as well with latest Xcode (Version 9.3 beta 4 (9Q127n)), new build system and cocoapods 1.4.0 |
We probably need to either (1) remove the |
Removing the link in each individual dependency target indeed silences the warning without any other side effect. Also, all links seems to need to be removed for such targets. I’m not sure about aggregate targets Sent with GitHawk |
My understanding is that this is the new build system being overly aggressive with the warning, as specifying frameworks to link against is necessary to be able to import their headers, and the warning should go away in future versions of Xcode |
Let’s wait and see then! |
I got the same warning: |
I also got this same issue on the released version of Xcode 9.3 (9E145), new build system (Preview), CocoaPods 1.4.0. |
Me too, went away with going back to standard build system. |
@segiddins @dnkoutso I’d like to give this one a go. Would it be reasonable to to add a |
I see the same problem here, too. |
Found the culprit, I'll open the PR's soon enough: https://github.com/CocoaPods/Xcodeproj/blob/master/lib/xcodeproj/project/project_helper.rb#L63. Which leads me to a question for the implementation:
|
@flovilmart is it possible to do it manually in Podfile in |
Looks like this snippet works:
Dunno how to remove only Foundation. Or maybe these targets should be removed all together per @flovilmart comment above. |
On my patch, I remove afterwards the foundation framework. |
@flovilmart Florent, have you resolved this? |
I opened a PR, but we’ll go with a different resolution #7570 |
Believe this is fixed by CocoaPods/Xcodeproj#571 |
Hello, I still have the same warning. I have updated to cocoa pods 1.5.3. |
Ahh, I see. Thanks for letting us know. I hope it is released somewhere this month so I can ship the app without warnings :) |
I'm using https://github.com/CocoaPods/CocoaPods/releases/tag/1.6.0.beta.1, and keeps warning me! |
[ x ] I've read and understood the *CONTRIBUTING guidelines and have done my best effort to follow.
Report
What did you do?
Build project in Xcode
What did you expect to happen?
No warnings
What happened instead?
Received warning:
and
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
You can test the project out here
The text was updated successfully, but these errors were encountered: