In Xcode, moving a framework into a group removes it from Link Binary With Libraries

StackOverflow https://stackoverflow.com/questions/17214726

  •  01-06-2022
  •  | 
  •  

سؤال

In Xcode, when I add a framework directly in Build Phases->Link Binary With Libraries, the framework appears at the root level of the project. If I drag the framework into the Frameworks group, the link to the framework appears red in Link Binary With Libraries. I have to re-drag the framework back into Link Binary with Libraries for it to appear black again. Why is it doing this? Usually moving files around in group should not result in removing it.

Is there a way to make the framework appear in the Frameworks group when adding it?

هل كانت مفيدة؟

المحلول

It's just a visual issue and won't actually affect the link phase. If you leave the Build Phases section and return (directly, or later), the framework's name will be black as you'd expect it to be. There's no need to re-drag or re-add a framework. In Xcode 4, there's no way to have Xcode put the framework in the correct group automatically.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top