Cannot add embedded binaries (other projects) to project dependencies in XCode

后端 未结 6 1320
天命终不由人
天命终不由人 2021-02-05 10:06

I have an XCode workspace created with XCode 6.0.1. It constains 2 (Swift) libraries and one iOS app (Swift) that depends on those 2 libraries. I had stable setup that allowed m

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 11:01

    Ok, I ran into the same problem as you. After deleting the derived data, I could not re-link my binaries again. I think the reason is because the derived data is where the binaries are written to and linked against in your project.

    What I did to solve was to select my Framework as my build target. After building it, the Framework target turned from red to black. I can see in your screenshot it is red, meaning it has not been compiled into a binary and written on disk.

    Once I did this, I was able to re-link the Framework to my Project because there was a reference to it on disk. Hope this helps!

提交回复
热议问题