> For the complete documentation index, see [llms.txt](https://devguide.remotemonster.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devguide.remotemonster.com/livestreamingplatform/tutorial-simplelivestreaming-viewer/new-project-ios.md).

# 새 프로젝트 설정(iOS)

## 준비 사항

* Project ID (Service ID) [키 발급](/livestreamingplatform/tutorial-simplelivestreaming-viewer/create-key.md)
* Xcode 개발 환경
* iOS 10.0 이상

## 새 프로젝트 생성 및 설정

Xcode에서 Swift기반의 새 프로젝트를 생성합니다.

프로젝트 생성 후 `Build Settings`에서 `Enable Bitcode`를 `No`로 선택합니다.

![Bitcode](/files/-LsGD6-_4vcyQdtK88NI)

Objective-C 환경이라면 ALWAYS\_EMBED\_SWIFT\_STANDARD\_LIBRARIES를 Yes로 선택합니다.

![ALWAYS\_EMBED\_SWIFT\_STANDARD\_LIBRARIES](/files/-LsGD6-bjWRwTt861Qjr)

또한 Info.plist에서 다음 항목을 required로 선택합니다.

* Privacy: Bluetooth, Microphone, Camera

![Settings](/files/-LsGD6-dWy-6MLgYBTzD)

## Cocoapods를 이용하여 SDK 설치

`Podfile`에 `pod 'RemoteMonster', '~> 2.6.11'`을 추가합니다.

{% code title="Podfile" %}

```
target 'MyApp' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!
  pod 'RemoteMonster', '~> 2.6.11'
end
```

{% endcode %}

Podfile 수정 후 터미널에서 `pod install` 를 실행합니다. 필요 시 `pod update`를 실행합니다.

```bash
$ pod install
```

업데이트가 정상적으로 이루어지지 않는 경우 cocoapods의 로컬 저장소를 먼저 업데이트 후 사용해 보시기 바랍니다.

```
$ pod repo update
$ pod update
```

## 수동으로 import하여 SDK 설치

아래의 링크를 통해 iOS SDK의 최신 버전을 다운로드 받아 풀어 놓습니다.

{% embed url="<https://github.com/remotemonster/ios-sdk>" %}

RemoteMonster iOS SDK 폴더 안에 다음 3개의 폴더가 있습니다. 이 3개의 폴더를 프로젝트 트리창에 놓습니다.

```
RemoteMonster.framework
SwiftProtobuf.framework
WebRTC.framework
```

![Framework](/files/-LsGD6-fPfhc82Nr5nld)

Build Phases에 Copy Files 항목을 추가 하고, 위 단계에서 추가한 Frameworks를 복사 대상으로 추가 하여 줍니다.

![Copy Frameworks](/files/-LsGD6-h3WKa818wbEZY)

## Service Id, Service Key 입력

* 스토리보드 파일을 열어 `RemonCall`을 추가합니다.
  * Xcode의 네비게이터 영역에서 스토리보드 파일을 찾아 엽니다. Object 컴포넌트를 삽입 후 Class를 RemonCall으로, Module은 RemoteMonster로 수정합니다.

![](/files/-LsGbb9A2jNkr1RAbP6T)

* Xcode의 유틸리티 영역에서 `Service Id`와 `Service Key`를 입력합니다.

![](/files/-LsGD6-jVrUp8bQvLxQl)

프로젝트 설정을 완료했습니다. 이어서 기능을 구현에 대해 알아봅니다.

[단순 통화 앱 만들기(iOS)](https://github.com/RemoteMonster/remon-devguide-ko-2019/tree/f32c3e15637cf2b089461da0c2b5c5b8b154cbe3/livestreamingplatform/tutorial-simplelivestreaming-viewer/simplevideocall-code-ios.md)
