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

后端 未结 6 1317
天命终不由人
天命终不由人 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条回答
  •  悲&欢浪女
    2021-02-05 10:58

    I have a very similar issue and fixed it just last night. Decided to come back to this thread and offer my workaround, as rjstelling's solution above did not help my case.

    I have a workspace that contains two frameworks and one application. The App was making use of both frameworks happily for a while until I got hit by a mysterious compile eror where it decided that adding a property access to an instance variable called "cube" of a class type found in one of the framework, made access to "_cube" impossible (complaining it was not declared, while it had actually worked previously in a setter method).

    Long story short, after a clean, somehow the workspace/app project lost track of the embedded framework of my iOS 8+ project. Removing the embedded framework was the last straw in that line of failure, causing my project to no longer allow be to select any frameworks for embedding.

    Reverting the project & workspace to an earlier version did not get rid of the voodoo.

    I ended up adding the to-be-embeded framework projects in the main app project (as files) and introduced target dependencies on the frameworks.

    I was then able to re-embed the frameworks and link.

    As for the _cube thing, I had to specify a getter for the property and @synthesize the property to a different name. I dont have an explanation for this one.

提交回复
热议问题