Open gtokman opened 2 weeks ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.74.5. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
(do not download that file - the account seems to have been compromised (see pyg-team/pytorch-frame#441))
@gtokman Seen you add labels, do you have permission to delete the comment above? Almost certainly malware
afaik those labels are added by GitHub whenever someone opens an issue - while the action is attributed to the author, this doesn't mean they have any further permissions
@gtokman thanks for the issue... A few points:
<memory>
C++ module. That could also happen for transitive dependencies. Swift can't import C++ modules, hence the failure.@cipolleschi, thanks for the context.
- It looks like that your pod is failing before some swift file is trying to import the
<memory>
C++ module. That could also happen for transitive dependencies. Swift can't import C++ modules, hence the failure.
I mentioned that I found a workaround. My thought was that a Build Setting was not being set correctly, which led to the pod failing to compile if I included Swift source_files
. Do you have an idea of what would be different? I guess I can try to diff the .xcodeproj.
of the generated vs. manually adding the file.
when you add the swift file manually, Xcode usually creates some bridging headers and extra configuration files. We need to look into what is generated to see how Xcode resolve the issue and then "commit" those files into the library.
I can see if I can find some time to look into it, but it will likely happen in a couple of weeks as next week we have React Universe and I'll be in Poland for the Conference.
when you add the swift file manually, Xcode usually creates some bridging headers and extra configuration files. We need to look into what is generated to see how Xcode resolve the issue and then "commit" those files into the library.
I can see if I can find some time to look into it, but it will likely happen in a couple of weeks as next week we have React Universe and I'll be in Poland for the Conference.
Appreciate it @cipolleschi!
I do see the alert in Xcode for the bridging header, but I don't create it. Bridging headers are for Obj-C -> Swift. To use Swift -> Obj-C you just need to import the generated Swift headers i.e Send.swift -> #import "candlefinance_send-Swift.h"
.
Description
I'm upgrading one of our open-source libraries, which uses Swift for the logic. However, when I include
swift
in the podspecsource_files
, I get compiler errors.Steps to reproduce
I'm running into compiler errors after updating the podspec for the module to include
.swift
files in theios/
directory.After building the development pod, I get this error:
I found a workaround by omitting the following: 1.
run bundle exec pod install
Add the
.swift
file manuallyAfter building the project, there is no compiler error. This is fine for testing, but I need to update the podspec to include the file in the
Compile Sources
, otherwise, other errors will occur.React Native Version
0.74.0
Affected Platforms
Runtime - iOS
Areas
TurboModule - The New Native Module System
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/candlefinance/oss/tree/feat-convert-send-na
Screenshots and Videos
No response