将 J2Objc 与 Xcode 搭配使用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
J2ObjC 与 Xcode 集成的两种不同方式:使用单独的 makefile 构建外部项目,或者向任何 Xcode 项目类型添加构建规则。外部 build 的优势在于,仍会使用现有的 Java 工具,例如支持错误检查和重构的 IDE。构建规则的优势在于 Java 源代码是单个 Xcode 项目的一部分,并且 Java 源代码可以在调试时使用。
另一种方法是将 JreEmulation Xcode 项目添加到您自己的项目中。您的项目 build 与 JRE 模拟库之间的集成最为紧密,因此可以在这两种 build 之间共享 build 设置。您还可以调试 JRE 代码并对其进行插桩和分析。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-07-12。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-07-12。"],[[["J2ObjC offers two primary integration methods with Xcode: external build projects for utilizing existing Java tools and build rules for incorporating Java source within Xcode projects."],["External builds maintain compatibility with Java IDEs for error checking and refactoring, while build rules enable debugging with Java sources directly within Xcode."],["For the tightest integration and shared build settings with the JRE emulation library, including the JreEmulation Xcode project is recommended, offering debugging, instrumentation, and analysis capabilities."]]],[]]