Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 6 additions & 33 deletions sdk/flutter/3.0/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,42 +50,15 @@ cometchat: any
</Tabs>

2. For iOS change iOS deployment target to 11 or higher.
3. Add the following code to podfile inside iOS section of your app.

<Tabs>
<Tab title="Ruby">
```rb
post_install do |installer|

installer.pods_project.targets.each do |target|

flutter_additional_ios_build_settings(target)

//Copy from here------->

target.build_configurations.each do |build_configuration|

build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'

end

//Copy TILL here------->

end

end
```

</Tab>

</Tabs>
<Note>
**Upgrading an existing app? Remove any `arm64` exclusion from your Podfile.**

<Warning>
**Apple Silicon (M1/M2/M3) users:** Excluding `arm64` from the simulator build prevents the app from running natively on Apple Silicon Macs. If you are developing on an Apple Silicon Mac, consider excluding only `i386` instead of `arm64 i386` to enable native simulator builds.
</Warning>
An earlier version of this page asked you to set `EXCLUDED_ARCHS[sdk=iphonesimulator*]` to `arm64 i386`. On an Apple Silicon Mac the iPhone simulator runs on arm64, so that setting stops your app building for the simulator. The CometChat SDK ships a simulator build for arm64, so there is nothing to exclude. The `cometchat` plugin already excludes `i386` on its own, so no Podfile change is needed here.
</Note>

4. For iOS navigate to your iOS folder in terminal or CMD and do `pod install` . For apple chip system use rosetta terminal.
5. import CometChat SDK using the following code in dart.
3. For iOS navigate to your iOS folder in terminal or CMD and do `pod install` . For apple chip system use rosetta terminal.
4. import CometChat SDK using the following code in dart.

<Tabs>
<Tab title="Dart">
Expand Down
42 changes: 7 additions & 35 deletions sdk/flutter/3.0/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,43 +36,15 @@ cometchat: any

</Tabs>

2. Add following code to podfile inside iOS section of your app

<Tabs>
<Tab title="Ruby">
```rb
post_install do |installer|

installer.pods_project.targets.each do |target|

flutter_additional_ios_build_settings(target)

//Copy from here------->

target.build_configurations.each do |build_configuration|

build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'

end

//Copy TILL here------->

end

end
```

</Tab>

<Note>
**Upgrading an existing app? Remove any `arm64` exclusion from your Podfile.**

<Warning>
**Apple Silicon (M1/M2/M3) users:** Excluding `arm64` from the simulator build prevents the app from running natively on Apple Silicon Macs. If you are developing on an Apple Silicon Mac, consider excluding only `i386` instead of `arm64 i386` to enable native simulator builds.
</Warning>
</Tabs>
An earlier version of this page asked you to set `EXCLUDED_ARCHS[sdk=iphonesimulator*]` to `arm64 i386`. On an Apple Silicon Mac the iPhone simulator runs on arm64, so that setting stops your app building for the simulator. The CometChat SDK ships a simulator build for arm64, so there is nothing to exclude. The `cometchat` plugin already excludes `i386` on its own, so no Podfile change is needed here.
</Note>

3. For iOS, change the deployment target to `11` or higher.
4. For iOS, navigate to your iOS folder in terminal or CMD and do `pod install` . For apple chip system use rosetta terminal.
5. For iOS you can set the Enabled Bitcode settings to **NO** present in build settings of XCODE project
2. For iOS, change the deployment target to `11` or higher.
3. For iOS, navigate to your iOS folder in terminal or CMD and do `pod install` . For apple chip system use rosetta terminal.
4. For iOS you can set the Enabled Bitcode settings to **NO** present in build settings of XCODE project

<Frame>
<img src="/images/d36654d9-uqw7o892u1k2jfoi48c3mpcr3mfz8ha80dlt89198cy33d4xxfkqkic9gof95zj2-e78adc70b09a7dec13c4af65e00c0232.png" />
Expand Down
42 changes: 7 additions & 35 deletions sdk/flutter/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,43 +54,15 @@ flutter pub get
If you're migrating an existing app from CometChat SDK v4, check out the [Upgrading from v4](/sdk/flutter/upgrading-from-v4-guide) guide for breaking changes, deprecated methods, and migration instructions.
</Warning>

2. Add following code to podfile inside iOS section of your app

<Tabs>
<Tab title="Ruby">
```ruby
post_install do |installer|

installer.pods_project.targets.each do |target|

flutter_additional_ios_build_settings(target)

//Copy from here------->

target.build_configurations.each do |build_configuration|

build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'

end

//Copy TILL here------->

end

end
```

</Tab>

</Tabs>
<Note>
**Upgrading an existing app? Remove any `arm64` exclusion from your Podfile.**

<Warning>
**Apple Silicon (M1/M2/M3) users:** Excluding `arm64` from the simulator build prevents the app from running natively on Apple Silicon Macs. If you are developing on an Apple Silicon Mac, consider excluding only `i386` instead of `arm64 i386` to enable native simulator builds.
</Warning>
An earlier version of this page asked you to set `EXCLUDED_ARCHS[sdk=iphonesimulator*]` to `arm64 i386`. On an Apple Silicon Mac the iPhone simulator runs on arm64, so that setting stops your app building for the simulator. The CometChat SDK ships a simulator build for arm64, so there is nothing to exclude. The `cometchat_sdk` plugin already excludes `i386` on its own, so no Podfile change is needed here.
</Note>

3. For iOS, change the deployment target to `13` or higher.
4. For iOS, navigate to your iOS folder in terminal or CMD and do `pod install` . For apple chip system use rosetta terminal.
5. For iOS you can set the Enabled Bitcode settings to **NO** present in build settings of XCODE project
2. For iOS, change the deployment target to `13` or higher.
3. For iOS, navigate to your iOS folder in terminal or CMD and do `pod install` . For apple chip system use rosetta terminal.
4. For iOS you can set the Enabled Bitcode settings to **NO** present in build settings of XCODE project

<Frame>
<img src="/images/d36654d9-uqw7o892u1k2jfoi48c3mpcr3mfz8ha80dlt89198cy33d4xxfkqkic9gof95zj2-e78adc70b09a7dec13c4af65e00c0232.png" />
Expand Down
40 changes: 7 additions & 33 deletions sdk/flutter/v4/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,41 +69,15 @@ cometchat_sdk: ^4.0.33

### iOS Setup

1. Add the following to your Podfile inside the iOS section of your app:
<Note>
**Upgrading an existing app? Remove any `arm64` exclusion from your Podfile.**

<Tabs>
<Tab title="Ruby">
```ruby
post_install do |installer|

installer.pods_project.targets.each do |target|

flutter_additional_ios_build_settings(target)

//Copy from here------->

target.build_configurations.each do |build_configuration|

build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'

end

//Copy TILL here------->

end

end
```
</Tab>
</Tabs>

<Warning>
**Apple Silicon (M1/M2/M3) users:** Excluding `arm64` from the simulator build prevents the app from running natively on Apple Silicon Macs. If you are developing on an Apple Silicon Mac, consider excluding only `i386` instead of `arm64 i386` to enable native simulator builds.
</Warning>
An earlier version of this page asked you to set `EXCLUDED_ARCHS[sdk=iphonesimulator*]` to `arm64 i386`. On an Apple Silicon Mac the iPhone simulator runs on arm64, so that setting stops your app building for the simulator. The CometChat SDK ships a simulator build for arm64, so there is nothing to exclude. The `cometchat_sdk` plugin already excludes `i386` on its own, so no Podfile change is needed here.
</Note>

2. Change the deployment target to `11` or higher.
3. Navigate to your iOS folder in terminal and run `pod install`. For Apple Silicon systems, use a Rosetta terminal.
4. Set **Enabled Bitcode** to **NO** in the Build Settings of your Xcode project.
1. Change the deployment target to `11` or higher.
2. Navigate to your iOS folder in terminal and run `pod install`. For Apple Silicon systems, use a Rosetta terminal.
3. Set **Enabled Bitcode** to **NO** in the Build Settings of your Xcode project.

<Frame>
<img src="/images/d36654d9-uqw7o892u1k2jfoi48c3mpcr3mfz8ha80dlt89198cy33d4xxfkqkic9gof95zj2-e78adc70b09a7dec13c4af65e00c0232.png" />
Expand Down
9 changes: 5 additions & 4 deletions ui-kit/react-native/v4/call-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ post_install do |installer|

build_configuration.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'

build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'
build_configuration.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
Expand All @@ -143,9 +142,11 @@ end

</Tabs>

<Warning>
**Apple Silicon (M1/M2/M3) users:** Excluding `arm64` from the simulator build prevents the app from running natively on Apple Silicon Macs. If you are developing on an Apple Silicon Mac, consider excluding only `i386` instead of `arm64 i386` to enable native simulator builds.
</Warning>
<Note>
**Upgrading an existing app? Remove any `arm64` exclusion from your Podfile.**

An earlier version of this page asked you to set `EXCLUDED_ARCHS[sdk=iphonesimulator*]` to `arm64 i386`. On an Apple Silicon Mac the iPhone simulator runs on arm64, so that setting stops your app building for the simulator.
</Note>

## Add the Call Listeners

Expand Down