Closed noahtallen closed 5 years ago
Thanks for the report, this is definitely an issue and we're working to resolve this asap. We've published tests and supporting frameworks to npm, but running these shouldn't be required (or necessary) for consumers.
We'll update this thread when a fix goes out (soon).
@noahtallen - it looks like this is simply an issue with our podspec, does changing the "source files" line to:
s.source_files = "ios/*.{h,m}"
fix your issue? We'll be pushing this fix in our next release.
Fixed in https://github.com/radarlabs/react-native-radar/releases/tag/2.1.6 - let us know if you have any problems after upgrading. Always happy to help.
The build works now! Thanks so much for the quick response.
Describe the bug I switched to linking
react-native-radar
through pods:I'm unsure if switching back to linking manually will fix this issue, but I'll try that next.
After a
pod install
(and apod update
for some other things), the build is failing. It says:XCTest/XCTest.h file not found
. I can fix this error by addings.framework="XCTest"
to the bottom of thereact-native-radar.podspec
file. (And running pod install again after that.) However, once I fix that, I get a new error:'OCMock/OCMock.h' file not found.
These both happen in the same file:For some reason, it is trying to build the RNRadar Xcode tests when I try to a development build for my own app. And, for some reason, the
ocmock
dependency includes a ton of old "example" projects which are getting compiled while building my own app. 🤔Any clues?To Reproduce Link the library through pods, run pod install, and try to compile.
Expected behavior The build should work, and it shouldn't build old example projects for third party dependencies.
Metadata (please complete the following information):