Closed cojoj closed 9 years ago
I know, I know... I'm reinstalling Xcode (this crazy lil bastard) and I'll check on this one more time!
Nope, nothing... Still getting this error.
Take a look at this: https://github.com/Alamofire/Alamofire/issues/106
Delete derived data?
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.
Derieved data deleted, Xcode reinstalled... Nothing seems to help!
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:
Damn, this is annoying! Maybe something to file with CocoaPods?
¯(ツ)/¯
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 😜
probably deintegration woes, try out https://github.com/kylef/cocoapods-deintegrate and then pod install
again (see also CocoaPods/CocoaPods#2471)
I did deintegration...
I did add platform
to each target
...
😭
How can I repro this?
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.
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.
And in that case I get linker command failed...
for OS X while other platforms work as supposed.
What's the status of this, @cojoj?
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
.
BuildaUtils
shouldn't affect this, it just provides a bunch of .swift
files, the project file isn't used by CocoaPods AFAIK.
@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.
@czechboy0 possibly, I am honestly not sure why exactly it is failing
:cry: Thanks anyway.
Closing this due to #110 being merged (so this isn't an issue any more).
I've tried to run today
XcodeServerSDK
's iOS target I get this rather strange error:It looks like our
Podfile
is linking wrongBuildaUtils
target. Any idea what's wrong?