컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
J2ObjC 소개
J2ObjC는 Google의 오픈소스 명령줄 도구로
iOS (iPhone/iPad) 플랫폼용 Objective-C의 Java 소스 코드 이 도구
를 사용하면 수정할 필요 없이 Java 소스를 iOS 애플리케이션 빌드에 포함할 수 있습니다.
꼭 필요합니다 목표는 앱의 비 UI를 작성하는 것입니다.
코드 (예: 애플리케이션 로직 및 데이터 모델)를
웹 앱 (J2CL 사용), Android 앱,
iOS 앱도 있습니다.
시작하기
J2ObjC는
클라이언트 측 애플리케이션 개발자는 예외, 내부 및
익명 클래스, 제네릭 유형, 스레드 및 리플렉션입니다. JUnit 테스트
번역 및 실행도 지원됩니다
J2ObjC의 주의사항
J2ObjC는 어떠한 종류의 플랫폼과 독립적인 UI 툴킷도 제공하지 않으며
앞으로 그렇게 할 계획이 있습니다. iOS UI 코드는
Apple의 iOS SDK를 사용하여 Objective-C, Objective-C++ 또는 Swift로 작성해야 합니다.
J2ObjC는 Android 바이너리 애플리케이션을 변환할 수 없습니다. 개발자는 소스
개발자가 소유하거나 사용 라이선스가 있는 Android 앱의 코드를 작성해야 합니다.
요구사항
- Mac 워크스테이션 또는 노트북
- Mac OS X 13.5 이상
- Xcode 15 이상
- JDK 11 이상
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-16(UTC)
[[["이해하기 쉬움","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"]],["최종 업데이트: 2024-08-16(UTC)"],[[["J2ObjC is a tool that translates Java source code to Objective-C for iOS app development, allowing shared code across web, Android, and iOS platforms."],["It supports most Java language features but does not offer a platform-independent UI toolkit and requires source code for Android app conversion."],["Developers need a Mac running macOS 13.5 or higher, Xcode 15 or higher, and JDK 11 or higher to utilize J2ObjC."]]],["J2ObjC, a Google open-source tool, converts Java code to Objective-C for iOS development, enabling shared non-UI code between web, Android, and iOS apps. It supports Java features like exceptions, generics, and threads, along with JUnit testing. It requires a Mac with recent OS X, Xcode, and JDK. It does not translate UI code or Android binaries, only Java source code. It aims to let developers write app logic in Java and be able to use it across platforms.\n"]]