> For the complete documentation index, see [llms.txt](https://leaestudio.gitbook.io/city-guide-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leaestudio.gitbook.io/city-guide-document/how-to-import-project.md).

# 2. Setting up the iOS app

{% hint style="info" %}
Before you begin, you need a few things set up in your environment:

* Xcode 9.2 or later
* An Xcode project targeting iOS 10.11 El Capitan
* Swift projects must use Swift 4.2
* CocoaPods 0.39.0 and above
  {% endhint %}

After purchase and download Trip package. You can Rename and Unzip it everywhere on your computer.

![Trid - City Guide package](/files/-LRN6Xq3agKT_bBMYbqp)

## **Importing and running**

1. Open Terminal and `cd` to "ios\_source\_code" folder in "trid\_package" folder.

![](/files/-LRN7gRMydEhiT7kiRuV)

2\. Run `pod update`

![](/files/-LRNA5N8BmC3Hxoa1KL8)

![Finish pod update](/files/-LRNAP2c85MzRKdNeYr_)

3\. Open "trid.xcworkspace" in "ios\_source\_code" folder by Xcode

![](/files/-LRNB6DpVi69G4FbRXza)

![Trid - City Guide in Xcode](/files/-LRNDDCU24SJ_jcYO92K)

4\. In the Tab Identity, Replace **Bundle Identifier** with **Bundle ID of iOS** **app** that you created in Firebase.

![](/files/-LRVMjNIueEY3ZqDyjaj)

5\. Go to your [Firebase Console](https://firebase.google.com/console/) and download the **GoogleService-Info.plist**' file and replace the placeholder in trid/dev/GoogleService-Info.plist

![](/files/-LRVFpavhBHE1CYmbipC)

6\. Press the Play button to test the app on the emulator.

![](/files/-LRVL32ltv2VoD3QkYRX)

\
Done. You have setup a successful iOS app.

## &#x20;**Facebook Login**

{% hint style="info" %}
To accept for the user can Sign Up and Login by Facebook. You need config like below
{% endhint %}

Open "Info" tab & update Facebook App Id

![](/files/-LRV8VjF6M3rS0W7Vj0Q)

## Update contact info

Open file "trid/global/AppSetting.swift" to update your application info&#x20;

![Update application contact info](/files/-LQ0IOwLZDrDrEWOWVcX)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://leaestudio.gitbook.io/city-guide-document/how-to-import-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
