question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing Intercom/Intercom.h

See original GitHub issue

Hello everyone, I am facing this very strange and OLD problem that was affecting RN ≤ 0.40 users. I have a brand new Xcode project in swift (4.0) using cocoa pods (1.3.1). I have added, as you say, all the requirements in the podfile but I always have problems with the imports.

in IntercomUserAttributesBuilder.m

#import <Intercom/Intercom.h>   //file not found

in IntercomWrapper.h

#if __has_include(<React/RCTAssert.h>)
#import <React/RCTBridgeModule.h>
#import <React/RCTUtils.h>
#else // back compatibility for RN version < 0.40
#import "RCTBridgeModule.h" // file not found.
#import "RCTUtils.h"
#endif

I am using: RN@0.50.3 react@16.1.1 react-native-intercom@9.0.0

Any suggestions? Any Idea?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
aramkarapetiancommented, Jan 26, 2018

We had the same issue and took as two days to figure out that when dragging framework into embedded frameworks it automatically adds root folder to path, but since we had path without including ${inherit} it would not see the path added by XCode. Let me know if you did not get what I mean, it was difficult to figure out and difficult to describe. Hope this helps.

5reactions
chukitowcommented, Dec 4, 2017

@ifero @afilp the steps that I followed in order to set up the library on IOS.

1 - npm install react-native-intercom --save 2 - react-native link 3 - Add the following scripts to AppDelegate.m

#import "Intercom/intercom.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Initialize Intercom
    [Intercom setApiKey:@"<#ios_sdk-...#>" forAppId:@"<#your-app-id#>"];
}

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
     [Intercom setDeviceToken:deviceToken];
}

At this point I was facing the same error Missing Intercom/Intercom.h then I noticed I need to do some extra steps.

4 - Download Intercom for iOS and extract the zip.

5 - Go to your Xcode project’s “General” settings. Drag Intercom.framework to the “Embedded Binaries” section. Make sure “Copy items if needed” is selected and click Finish.

6 - Create a new “Run Script Phase” in your app’s target’s “Build Phases” and paste the following snippet in the script text field:

 bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Intercom.framework/strip-frameworks.sh"

7 - You’ll need to make sure that you have a NSPhotoLibraryUsageDescription entry in your Info.plist.

Hope this works for guys.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Umbrella Header issue in iOS SDK 12.3.0 - Interconnected
umbrella header for module 'Intercom' does not include header 'ICMLoadingViewController.h'. I am using the following: macOS 12.4; Xcode 13.4 (13F17a) ...
Read more >
Developers - Missing Intercom/Intercom.h - - Bountysource
Hello everyone, I am facing this very strange and OLD problem that was affecting RN ≤ 0.40 users. I have a brand new...
Read more >
changelog - CocoaPods
Fixed UI issues in the navigation bar. Enhancements. Added the ability to set User Attributes on +[Intercom loginWithUserAttributes:success:failure:] ...
Read more >
@yellowexpress/react-native-intercom - npm package | Snyk
H. 0. M. 0. L. All security vulnerabilities belong to production ... Looks like @yellowexpress/react-native-intercom is missing a security policy.
Read more >
NOS VIC-3 Intercom Headset H-366, Missing MIC, for Military ...
Find many great new & used options and get the best deals for NOS VIC-3 Intercom Headset H-366, Missing MIC, for Military Intercom...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found