Comments (3)
The javac
tools converts the package into a relative directory when generating classfiles, so for example, java.util.Date
causes the java/util/Date.class
classfile to be generated. This way, java.sql.Date
won't overwrite it, because it gets written to java/sql/Date.class
. By default, j2objc follows the same pattern, so java/util/Date.h
won't be overwritten by java/sql/Date.h
.
A few beginning j2objc users wanted a simpler pattern, so the --no-package-directories
flag was added, which would cause those two files to be written to the same path. We don't recommend using this flag (it's really only for hello-world level example apps). So this works as designed, and if you are using this flag and having this problem, either rename one of the classes or use a build system that supports relative paths for output files.
In the future, if you have questions, please ask them on https://stackoverflow.com/ with the #j2objc
tag. Issues are normally used to report bugs and make enhancement suggestions.
from j2objc.
@tomball Yes, the issue with directories is that header path that j2obj generates is full.
And if i whant to use Cocoapods, and i stell have files with same names (even in different directories) - it won't compile until i use separate targets.
And just because every directory can have file with the same name, so i need target(Podspec) for each directory and it becomes hell.
So my real question was how to generate files with different names no matter what directories they located in
from j2objc.
from j2objc.
Related Issues (20)
- a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] HOT 7
- Facing permission denide issue while converting java code to objective C HOT 1
- The 'build_subset_frameworks.sh' script fails
- CI Workflow Runs are failing HOT 1
- Cannot use JRE.xcframework with Xcode 15 Release Candidate due to code signing issue HOT 13
- JRE_Core.xcframework is missing headers HOT 2
- make dist fails make: *** [jre_emul_jars_dist] Error 2 HOT 9
- Headers information is missing from the XCFrameworks' "Info.plist" files HOT 6
- Encountering "multiple commands produce 'module.modulemap'" error when linking a target with any two of the J2ObjC XCFrameworks HOT 1
- When can you update the new version? HOT 3
- JAVA code is configured with JVM, how do I configure JVM into J2OBJC? HOT 1
- My
- Myself
- Size of JRE.xcframework exceeds 75MB limit of appstoreconnect HOT 2
- bitwise error ( sudo make dist command ). JDK 15 osx Sonoma 14.1.2
- The contents of JRE.xcframework (static vs dynamic lib)
- Bazel 6 example workspace
- Inquiry about Support for Apple's Privacy Manifest Files HOT 1
- Difficulty resolving missing Android SDK APIs in iOS SDK during J2objc translation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from j2objc.