Xcode에서 Embedded Binaries와 Linked Frameworks and Libraries의 차이점은 무엇일까?

드리머즈 0 5192

iOS프로그래밍은 아직 어색합니다.

Xcode에서 설정을 보면 Embedded Binaries와 Linked Frameworks and Libraries 항목이 있습니다.


a642b4b52523791cc6532b2cc3004db7_1545906555_1771.png
도대체 이 두 설정의 차이가 무엇일까요?

궁금해서 찾아봤습니다.


스택오버플로우에 이미 몇 번 논의된 적이 있습니다.

https://stackoverflow.com/questions/32375687/what-is-the-difference-between-embedded-binaries-and-linked-frameworks


  1. Linking- We must link a framework if we use any API defined in it.

  2. Embedding - This process will ensure the added framework will be embedded within the App bundle, and potentially will help sharing code between the app, and any extension bundles. We embed only third party frameworks and not the ones provided by iOS as they are readily available in the device. If we are embedding, that means that, we will need to link to them too so that Xcode can compile and create the build. When the app runs in the device, then the embedded framework will be loaded into memory when needed.

번역은 아래와 같습니다.

  1. Linked Frameworks and Libraries : 프레임웍 내부의 api(함수)를 쓴다면 반드시 link 해야 한다고 합니다.
  2. Embedded Binaries : 임베드된 프레임워크는 App bundle에 포함되어 그 앱과 다른 확장 번들 사이의 코드 공유를 도와줍니다. 우리는 3rd 파티(외부) 프레임워크만 임베드하며 iOS가 제공하는 프레임워크는 단말(폰)에서 기본적으로 사용가능하기 때문에 임베드하지 않습니다. 임베드 한다는 것은 Xcode가 컴파일과 빌드를 할 수 있게 (임베드 한) 프레임워크도 link해야 하는 것을 의미합니다. 그러면 앱이 실행될 때,임베드된 프레임워크는 필요할 때 메모리에 올라갑니다.
음..
link는 앱에서 어떤 프레임워크(라이브러리)의 함수를 사용할 때 쓰면 되는데 iOS에서 제공하는 함수들을 사용할 때 쓰는 것 같네요.
embed를 하게되면 임베드한 프레임워크가 앱에 포함되며 앱에서 사용할 수 있게 자동으로 link도 된다는 말 같습니다.

흠..


0 Comments
Category
State
  • 현재 접속자 5 명
  • 오늘 방문자 39 명
  • 어제 방문자 399 명
  • 최대 방문자 8,746 명
  • 전체 방문자 405,226 명
  • 전체 게시물 97 개
  • 전체 댓글수 18 개
  • 전체 회원수 49 명
Facebook Twitter GooglePlus KakaoStory NaverBand