-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Build fails with "AppCenter/AppCenter.h" file not found #420
Comments
@milesmatthias Thanks for creating a new issue. |
Spent more time debugging this today. I'm not sure if it's some weird edge case with my setup, or if it's edge cases with npm & react-native, but here are the two roads:
|
I'have some questions:
Best, |
Thanks for your help with this by the way! |
@milesmatthias Thanks for the answers. |
Thanks for that clarification @jaelim-ms, I was looking at the projects, not the targets. The targets do have these Framework search paths in them. |
@milesmatthias Can you tell me how you created your project initially? Did you run |
@mmiani If I understand correctly, your PR fixes React dependency issue. The issue that @milesmatthias is facing is a dependency for App Center SDK. |
Hi @milesmatthias, |
I have the same issue here, it works in Xcode(debug and release), but in app-center build I get same errors:
|
@felix-zg Could you open a new issue and include all the information in the template? Otherwise it's difficult for us to test your exact scenario. |
Hello, I created a brand new project via
followed by
Added the keys I had from appcenter.ms but when I tried to run it, compilation fails saying appcenter.h is missing and I can see on recovered references the libraries are marked as red. Seems like a major bug when the installation instructions on a brand new project don't seem to work... Just realized I'm missing cocoapods, you might want to add that into the set up instructions you have when you create a new app on appcenter.ms |
Hi @ospfranco, |
re-running |
I also ran into this error on App Center Build while locally it worked fine. Fixed it by adding these lines to my
Love to hear if there's a better solution. |
I followed this document and faced the same issue. Fixed it by adding the path of the folder where I have put all the downloaded frameworks inside So I added Make sure you have selected the xcodeproj libraries as target and not your own main app. |
Hi, for this error, follow main instructions and in my case, I put these code at the top of Podfile
and run pod install again, then it works. |
@duytq94 the podfile is supposed to be updated by the react-native link. (From the AppCenter documentation) |
@clpolet seem it doesn't add them, at least in my case. |
@duytq94 please file a separate issue with all the necessary details from the issue template so we can reproduce the issue and fix it. |
I had this problem when installing the SDK manually following the instructions in the documentation.
So If you put the frameworks outside the directories shown above (like I did at first), your project won't compile. |
I had the same error but it was not caused by any of the above scenarios. FRAMEWORK_SEARCH_PATH is automatically configured properly by "react-native link":
But if "FRAMEWORK_SEARCH_PATHS[arch=*]" is configured, the linker won't use FRAMEWORK_SEARCH_PATH, causing the failure. The solution is consolidate "FRAMEWORK_SEARCH_PATHS[arch=*]" into FRAMEWORK_SEARCH_PATH and use FRAMEWORK_SEARCH_PATH only. |
If someone still seeing the #import <AppCenterReactNativeCrashes/AppCenterReactNativeCrashes.h> Added pods
And changed to
|
Instructions as Written Are IncorrectI cannot get this work. Any of these things.
I undid everything so that This is What Finally Worked
Note that it is I ran
Consequently my
I then ran I started Metro Builder using I ran I hope this helps others. |
Thanks for you sharing. I wonder why only
We will update our docs to use |
I have the same issue but none of solutions above didn't help. I've updated versions of appcenter and its services and cleared xcode project cache so it started to work. |
and appcenter-core in pod file did it for me
|
Hi @jpmc3630 Could you elaborate a bit on that? Did you have this issue and then fixed it using the approach in your comment? |
Yeah I had this issue, and tried more or less everything on this page. I'm using a version of RN that started <6.0 and is now 6.3 but I suspect something was missed when it was migrated/updated, because nothing seems to link properly - auto or when running Running When I added to the podfile:
as suggested by others here, I got error 'No podspec found in node_modules/appcenter/ios' So I had a look and the podspec is called The versions I'm running are:
|
Thank you for sharing the details! Glad it worked for you. |
Description
Running a project after adding AppCenter to an XCode workspace fails. 3 App Center projects are added to my Xcode workspace: AppCenterReactNative, AppCenterReactNativeAnalytics, and AppCenterReactNativeCrashes, all 3 of which try to import AppCenter/AppCenter.h and they're all failing to find the file.
Repro Steps
Please list the steps used to reproduce your issue.
npm install appcenter appcenter-analytics appcenter-crashes --save
react-native link
react-native run-ios
Details
react-native info
pod --version
1.5.0
[MSAppCenter setLogLevel: MSLogLevelVerbose];
before your call to[AppCenterReactNative register];
(or any other SDK registration). For Android, useAppCenter.setLogLevel(android.util.Log.VERBOSE);
before yourSoLoader.init
call. Include the logs here:The text was updated successfully, but these errors were encountered: