ObjectMapper icon indicating copy to clipboard operation
ObjectMapper copied to clipboard

Xcode 11.4 Swift Package Manager can't import ObjectMapper

Open mymbrooks opened this issue 5 years ago • 12 comments

Before Xcode 11.4 Swift Package Manager can import ObjectMapper successful. After update to Xcode 11.4 the error output: target 'ObjectMapper' referenced in product 'ObjectMapper' is empty

I found in Xcode 11.4 release note

Swift Packages New Features Remote Swift packages with tools version 5.2 and above no longer resolve package dependencies that are only used in their test targets, improving performance and reducing the chance of dependency version conflicts. (56925017) Swift Package Manager uses a new strategy for resolving package dependencies that significantly improves the quality of error messages and performance in complex package graphs. (45371461)

mymbrooks avatar Feb 13 '20 07:02 mymbrooks

In beta 2, for me it's getting imported, however I can't build the project now: Screenshot 2020-02-26 at 15 28 29

I.e. compiler thinks that the files are duplicated. Then, looking at the file structure, I've noticed, that they are actually linked twice: Screenshot 2020-02-26 at 15 35 42

Screenshot 2020-02-26 at 15 32 41

It can't be just me.. Or?

ksloginov avatar Feb 26 '20 14:02 ksloginov

@ksloginov I update to Xcode 11.4 beta 2 the same error

mymbrooks avatar Feb 28 '20 15:02 mymbrooks

It might be ok in Xcode 11.4 beta 3.

xernaj avatar Mar 04 '20 03:03 xernaj

@xernaj of course not, it's Apple after all.

Current status: fails in Xcode 11.4 beta 3.

ksloginov avatar Mar 04 '20 08:03 ksloginov

@mymbrooks I've submitted a PR for this issue. With the forked version - it works for me now. Let me know if you're still experiencing the issues w/ PR'ed version

ksloginov avatar Mar 11 '20 16:03 ksloginov

Any update on this one? Xcode 11.4 is out.

zdnk avatar Mar 26 '20 10:03 zdnk

@ksloginov Sorry for late reply I update to 11.4 final, clean all cache, use your repos https://github.com/ksloginov/ObjectMapper.git and still the same error.

mymbrooks avatar Mar 26 '20 11:03 mymbrooks

@mymbrooks Huh.. Just tried with 11.4-release - still works fine for me (with mine repo). Screenshot 2020-03-26 at 12 37 19 Thinking out loud - you're forking my master branch, right? (I was too lazy to create a separate release etc. for that)

Do you have any double-refs with my repo? This is what I see in my real-project, which is depending on OM:

Screenshot 2020-03-26 at 12 38 55

(Before, it used to be a cycle-reference here)

ksloginov avatar Mar 26 '20 11:03 ksloginov

@ksloginov yeah master branch and double refs, I will check source code carefully to find why

mymbrooks avatar Mar 26 '20 11:03 mymbrooks

@ksloginov It's my mistake, I clone 3.5.1 not master now it works fine.

mymbrooks avatar Mar 26 '20 12:03 mymbrooks

Definitely an issue with the symlink causing infinite recursion here. That PR should fix it! 👍

joshuapoq avatar Mar 31 '20 13:03 joshuapoq

Any chance to get the pull request merged?

ruizmarc avatar Apr 08 '20 18:04 ruizmarc