# Unable to compile with Objc+ project ARM architecture

**URL:** <https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697>\
**Category:** iOS\
**Created:** [June 20, 2019, 3:41am UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697 "2019-06-20T03:41:44Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![erwolf](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/erwolf/32/918_2.png) [@erwolf](https://devforum.zoom.us/u/erwolf)\
**Post date:** [June 20, 2019, 3:41am UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/1 "2019-06-20T03:41:44Z")

</div>

**Description**  
Hey guys,  
We are unable to integrate iOS SDK into my existing Objective-C project using below instruction:

> **[1. SDK Initialization - Mastering Zoom SDK - iOS - Native SDKs - Zoom...](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization)**
>
> SDK Initialization
> 
> 
> 
> Contents
> 
> 
> 
> 1\\. Intialize the Zoom SDK
> 
> To integrate with our Zoom SDK and have all Zoom services working, the Zoom SDK instance n...

Our project has “arm64, arm64e, arm7, arm7s” architecture. When we compile our project, below error throws:

duplicate symbol \_BTN\_HEIGHT in:  
/Users/user1/Documents/zoomProject.build/Objects-normal/arm64/SDKStartJoinMeetingPresenter+ShareServiceDelegate.o  
/Users/user1/Documents/zoomProject/build/zoomProject.build/zoomProject-iphoneos/zoomProject.build/Objects-normal/arm64/MainViewController.o

ld: 30 duplicate symbols for architecture arm64  
clang: error: linker command failed with exit code 1 (use -v to see invocation)

**Which version?**  
v4.3.47201.0322

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 20, 2019, 10:59pm UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/2 "2019-06-20T22:59:16Z")

</div>

Hi erwolf,  
Thanks for using Zoom SDK. Our demo app has the same architecture configure as yours thus the arch are supported. Could you verify the integration steps by following the doc here: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration)? If the error stays, could you provide the steps of how to reproduce this error with our demo app?

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 21, 2019, 2:40am UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/3 "2019-06-21T02:40:51Z")

</div>

Hi erwolf,

Thanks for your post. Just confirmed with our engineer. It seems like you have defined a constant called “BTN\_HEIGHT”, which is used in our SDK and cause conflicts. Please try to rename the constant to something else to see if that helps.

Thanks!

---

<div class="post-metadata">

**Author:** ![erwolf](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/erwolf/32/918_2.png) [@erwolf](https://devforum.zoom.us/u/erwolf)\
**Post date:** [June 23, 2019, 8:42am UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/4 "2019-06-23T08:42:46Z")

</div>

Hi Carson,

On our end, we need to declare these constant variables to

#define SAFE\_ZOOM\_INSETS 34.0f  
#define BTN\_HEIGHT 24.0f

This works on our Xcode project.

Thanks.

---

<div class="post-metadata">

**Author:** ![erwolf](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/erwolf/32/918_2.png) [@erwolf](https://devforum.zoom.us/u/erwolf)\
**Post date:** [June 23, 2019, 8:54am UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/5 "2019-06-23T08:54:22Z")

</div>

@carson.zoom

After success compiling our project with MobileRTC framework, the app won’t be launched. Below message throws in console:

**objc[628]: Class MWTapDetectingView is implemented in both /private/var/containers/Bundle/Application/6F95B7C7-AE72-47C7-9CCC-FEB79BBF7F86/MyApp.app/Frameworks/MobileRTC.framework/MobileRTC (0x106093e68) and /var/containers/Bundle/Application/6F95B7C7-AE72-47C7-9CCC-FEB79BBF7F86/MyApp.app/MyApp (0x1036b1018). One of the two will be used. Which one is undefined.**

**objc[628]: Class MWCaptionView is implemented in both /private/var/containers/Bundle/Application/6F95B7C7-AE72-47C7-9CCC-FEB79BBF7F86/MyApp.app/Frameworks/MobileRTC.framework/MobileRTC (0x106090a88) and /var/containers/Bundle/Application/6F95B7C7-AE72-47C7-9CCC-FEB79BBF7F86/MyApp.app/MyApp (0x1036b1888). One of the two will be used. Which one is undefined.**

Can you investigate the reason ?

Thank you.

---

<div class="post-metadata">

**Author:** ![erwolf](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/erwolf/32/918_2.png) [@erwolf](https://devforum.zoom.us/u/erwolf)\
**Post date:** [June 24, 2019, 2:18am UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/6 "2019-06-24T02:18:03Z")

</div>

After adding -ObjC in other linker flag, the app works.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 24, 2019, 6:33pm UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/7 "2019-06-24T18:33:17Z")

</div>

Hi erwolf,  
Thanks for the reply and the details. Yes, we requires some configuration before deploying our SDK, please see [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration#5-deployment](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration#5-deployment) for more information.

Glad to hear that the app works. So is this problem resolved?

Thanks!

---

<div class="post-metadata">

**Author:** ![erwolf](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/erwolf/32/918_2.png) [@erwolf](https://devforum.zoom.us/u/erwolf)\
**Post date:** [June 25, 2019, 1:52am UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/8 "2019-06-25T01:52:27Z")

</div>

Yes, issue is resolved.

Thank you.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 17, 2019, 7:04pm UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/9 "2019-07-17T19:04:39Z")

</div>

Hi erwolf,

Glad to hear that the problem has been resolved. Please let us know if you have any other questions. Happy Zooming!

Thanks!

---

<div class="post-metadata">

**Author:** ![prince.kumar](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@prince.kumar](https://devforum.zoom.us/u/prince.kumar)\
**Post date:** [March 28, 2020, 1:52pm UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/10 "2020-03-28T13:52:47Z")

</div>

It is showing duplicate because they coded it incorrectly.

In .h file they declared

const CGFloat BTN\_HEIGHT = 24;

then imported ThumbView.h file in many files and used BTN\_HEIGHT.

Right Way to use this const is ---------------------

ThumbView.h  
**extern const CGFloat BTN\_HEIGHT;**

ThumbView.m  
**const CGFloat BTN\_HEIGHT = 40;**

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 31, 2020, 5:02am UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/11 "2020-03-31T05:02:16Z")

</div>

Hi [prince.kumar](https://devforum.zoom.us/u/prince.kumar),

Thanks for the post and thanks for the advice. The ThumbView.h/.m only exists in our demo app([https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/ThumbView.m](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/ThumbView.m)) so it won’t impact the usage of our SDK.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:24pm UTC](https://devforum.zoom.us/t/unable-to-compile-with-objc-project-arm-architecture/4697/12 "2020-08-21T19:24:21Z")

</div>

Closed on August 21, 2020, 7:24pm UTC


