Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

iOS: Definition of '' must be imported from module #462

Closed
chrisnovak opened this issue Jun 10, 2020 · 6 comments
Closed

iOS: Definition of '' must be imported from module #462

chrisnovak opened this issue Jun 10, 2020 · 6 comments
Labels
bug Confirmed bug released This feature/bug fix has been released

Comments

@chrisnovak
Copy link

Description

Upgraded patch version from 2.23.7, which was working.

Issue

Definition of '' must be imported from module 'BugsnagReactNative.BSG_KSMachHeaders' before it is required

in BSG_KSMachHeaders.h

Environment

Happens with both 2.23.8 and 2.23.9 on RN 61.4

  • cocoapods version (if any) (pod -v): 1.8.4
  • iOS/Android version(s): iOS 13.4.1
  • simulator/emulator or physical device?: physical
  • debug mode or production?: debug
[BugsnagReactNative start];
@xljones
Copy link

xljones commented Jun 11, 2020

Hey @chrisnovak, if I upgrade the Bugsnag React Native library from 2.23.7->2.23.8 (or 2.23.7->2.23.9) using iOS 13.4.0 (or iOS 13.5.0) on a simulator, without running pod install in the ios directory, I get the following result:

'BSG_KSMachHeaders.h' file not found
#include "BSG_KSMachHeaders.h"

Did you update the pods after updating the Bugsnag RN library? Can you please run, from your project directory cd ios && pod install and retry running the application.

@xljones xljones added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Jun 11, 2020
@chrisnovak
Copy link
Author

I can confirm that I ran pod install. Did it again today and confirmed the changes to the Pods dir/Podfile.lock. Also did a rm -rf node_modules && npm i && cd ios && bundle exec pod install before cleaning/rebuilding in Xcode.

@elyalvarado
Copy link

I can confirm I'm having the same issue when upgrading from 2.23.7 to 2.23.9.

@abigailbramble abigailbramble removed the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Jun 19, 2020
@xljones
Copy link

xljones commented Jun 26, 2020

Hey @chrisnovak, @elyalvarado. I've been doing battle with this one to try and recreate but with no joy just yet. Since it looks like when you do a full clean/rebuild of your project, it would infer it could be something to do with how you've previously setup the project? Are you able to reproduce this issue within a minimal reproduction example that you could share with us? If you write in to [email protected], we can provide an upload link if the project breaches email attachment sizes.

@xljones xljones added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Jun 26, 2020
@xljones xljones added backlog We hope to fix this feature/bug in the future bug Confirmed bug and removed awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. labels Jul 8, 2020
@markpar
Copy link

markpar commented Jul 10, 2020

My Obj-C knowledge is not so great, but I'm happy to help validate any potential fixes. 🙂

@abigailbramble
Copy link

abigailbramble commented Jul 13, 2020

We have released an update in v2.23.10. We believe this should fix this issue. Please reach out if you continue to experience any issues with this.

@abigailbramble abigailbramble added released This feature/bug fix has been released and removed backlog We hope to fix this feature/bug in the future labels Jul 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Confirmed bug released This feature/bug fix has been released
Projects
None yet
Development

No branches or pull requests

5 participants