Git Product home page Git Product logo

Comments (22)

czechboy0 avatar czechboy0 commented on August 16, 2024

Weird: https://github.com/CocoaPods/Specs/blob/master/Specs/BuildaUtils/0.0.8/BuildaUtils.podspec.json#L15

from xcodeserversdk.

cojoj avatar cojoj commented on August 16, 2024

I know, I know... I'm reinstalling Xcode (this crazy lil bastard) and I'll check on this one more time!

from xcodeserversdk.

cojoj avatar cojoj commented on August 16, 2024

Nope, nothing... Still getting this error.

Take a look at this: Alamofire/Alamofire#106

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 16, 2024

Delete derived data?

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 16, 2024

Hmm I'm still confused. How can we change the podspec to work for iOS as well? I thought that would already be working now.

from xcodeserversdk.

cojoj avatar cojoj commented on August 16, 2024

Derieved data deleted, Xcode reinstalled... Nothing seems to help!

from xcodeserversdk.

cojoj avatar cojoj commented on August 16, 2024

When I did modify Podfile iOS targets to look like:

target 'XcodeServerSDK - iOS' do
    platform :ios, '9.0'
    pod utils_name, utils_version
end

target 'XcodeServerSDK - iOS Tests' do
    platform :ios, '9.0'
    pod utils_name, utils_version
    pod 'DVR', :git => "https://github.com/czechboy0/DVR.git", :tag => "v0.0.3-czechboy0"
end

everyting started working for iOS but unexpectedly OS X target fails with:

zrzut ekranu 2015-07-29 o 21 33 15

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 16, 2024

Damn, this is annoying! Maybe something to file with CocoaPods?

from xcodeserversdk.

cojoj avatar cojoj commented on August 16, 2024

¯_(ツ)_/¯

There are many possible scenarios... I think I'd be great if some Cocoapods guru can take a glipse at the project itself and at Podfile. Maybe @neonichu 😜

from xcodeserversdk.

neonichu avatar neonichu commented on August 16, 2024

probably deintegration woes, try out https://github.com/kylef/cocoapods-deintegrate and then pod install again (see also CocoaPods/CocoaPods#2471)

from xcodeserversdk.

cojoj avatar cojoj commented on August 16, 2024

I did deintegration...
I did add platform to each target...

😭

from xcodeserversdk.

neonichu avatar neonichu commented on August 16, 2024

How can I repro this?

from xcodeserversdk.

cojoj avatar cojoj commented on August 16, 2024

Just git clone this repo and try building it for different targets (OS X, iOS and watchOS) but from swift-2 branch 😉

Current Podfile should fail for iOS and when you specify platform it'll fail for OS X.

from xcodeserversdk.

neonichu avatar neonichu commented on August 16, 2024

In this case, you should rather explicitly define the platform for each target, like this:

diff --git a/Podfile b/Podfile
index eef1f20..19c7bd6 100644
--- a/Podfile
+++ b/Podfile
@@ -5,24 +5,29 @@ utils_name = 'BuildaUtils'
 utils_version = '0.0.8'

 target 'XcodeServerSDK - OS X' do
+platform :osx, '10.10'
 pod utils_name, utils_version
 end

 target 'XcodeServerSDK - OS X Tests' do
+platform :osx, '10.10'
 pod utils_name, utils_version
 pod 'DVR', :git => "https://github.com/czechboy0/DVR.git", :tag => "v0.0.3-czechboy0"
 end

 target 'XcodeServerSDK - iOS' do
+platform :ios, '8.0'
 pod utils_name, utils_version
 end

 target 'XcodeServerSDK - iOS Tests' do
+platform :ios, '8.0'
 pod utils_name, utils_version
 pod 'DVR', :git => "https://github.com/czechboy0/DVR.git", :tag => "v0.0.3-czechboy0"
 end

 target 'XcodeServerSDK - watchOS' do
+platform :watchos, '2.0'
 pod utils_name, utils_version
 end

However, this still doesn't seem to work, because the target dependencies aren't being set up correctly.

from xcodeserversdk.

cojoj avatar cojoj commented on August 16, 2024

And in that case I get linker command failed... for OS X while other platforms work as supposed.

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 16, 2024

What's the status of this, @cojoj?

from xcodeserversdk.

cojoj avatar cojoj commented on August 16, 2024

Looks like we're stuck... No matter what we put where one platform won't work. I really have no idea what else we can do.

I've tried extracting

pod utils_name, utils_version

outside any target but no luck here... 😓


I think that right now we're trying to fix issue related to BuildaUtils... Maybe fact that we have two targets there or some missing things in project.pbxproj.

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 16, 2024

BuildaUtils shouldn't affect this, it just provides a bunch of .swift files, the project file isn't used by CocoaPods AFAIK.

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 16, 2024

@neonichu Does this have anything to do with the recent change in CocoaPods in an attempt to reduce duplicate targets? We basically have the same code just compiled for different targets here.

from xcodeserversdk.

neonichu avatar neonichu commented on August 16, 2024

@czechboy0 possibly, I am honestly not sure why exactly it is failing

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 16, 2024

😢 Thanks anyway.

from xcodeserversdk.

czechboy0 avatar czechboy0 commented on August 16, 2024

Closing this due to #110 being merged (so this isn't an issue any more).

from xcodeserversdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.