Questions tagged [j2objc]

J2ObjC is an open-source command-line tool from Google that translates Java code to Objective-C for the iOS (iPhone/iPad) platform.

J2ObjC is an open-source command-line tool from Google that translates Java code to Objective-C for the iOS (iPhone/iPad) platform.

137 questions
1
vote
2 answers

j2objc + HttpURLConnection + CookieHandler

We are currently transpiling our android manager layer with j2objc to iOS. It seems to work very well, but now I have an issue with java.net and Cookie handling. We using an own implementation of a java.net.CookieStore for persisting Cookies To use…
L6Echo
  • 29
  • 7
1
vote
1 answer

Exclude tests using J2ObjC Gradle Plugin

Is it somehow possible to exclude test classes from java-to-ObjcC conversion with j2objc-gradle plugin?
nKognito
  • 6,297
  • 17
  • 77
  • 138
1
vote
2 answers

Creating frege.jar and including intermediate .java files (for use with J2ObjC)

Is there a way to compile the Frege runtime and libraries to just their .java intermediates? I'm trying to use Frege as part of an iOS app via J2ObjC, which can't parse .class files.
Charles Maria
  • 2,165
  • 15
  • 15
1
vote
2 answers

Swift Compiler Error - failed to import bridging header

I'm trying to integrate Actor App for iOS. On compiling, I get this error : I checked the path and the ActorClient-Bridging-Header.h is present there. I have set the proper path to the header file in Build Settings And this is the folder structure…
Sreejith
  • 1,345
  • 13
  • 25
1
vote
1 answer

Linking to J2ObjC from another CocoaPod

We use J2ObjC and are trying to make the switch to Xcode 6's dynamic frameworks in order to incorporate Swift into the project. Simply adding use_frameworks! to our Podfile works great in the case where we're just using J2ObjC, but the problem comes…
jefflovejapan
  • 2,047
  • 3
  • 20
  • 34
1
vote
2 answers

Custom build rule not getting executed for Xcode 6.3

I am trying to get j2Objc working with the XCode build rules setup as explained in the j2Objc Wiki. The problem that I am facing is that the custom build rule which I add for compiling the java files doesn't seem to get executed at all. I have tried…
Rhishikeshj
  • 302
  • 2
  • 9
1
vote
1 answer

Xcode Error: PBXCp error: couldn't create directory

I want to include a Messages_de.properties file in my Xcode project. I my target's Build Phase I did: ![enter image description here][1] When I try to build the project I get the following errors: PBXCp…
Michael
  • 32,527
  • 49
  • 210
  • 370
1
vote
1 answer

Handling application events

I am building a cross-platform app for Android and iOS. So far it's mostly Android and I am learning how to use j2objc to translate the code that will later be used by iOS. On the question of architecture the app - how does one go around passing…
0x4B1D
  • 923
  • 1
  • 9
  • 19
1
vote
2 answers

XCode can't find j2objc jre_emul library

I import j2objc to my project, but I still get error like Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_Test (public class Test in java source). I found something about wrong linking static library to project (libjre_emul.a). I found…
eSeverus
  • 552
  • 1
  • 6
  • 18
1
vote
2 answers

Consulting on j2objc with a practical case

I am planning to port an android app to IOS (ipad etc...) and during research on google I found j2objc. There are a lot of discussions on j2objc and I can't figure out how it works and what is possible. (I know, that it would be probably the best to…
mcfly soft
  • 11,289
  • 26
  • 98
  • 202
1
vote
1 answer

j2objc error adding guava (When.o is missing)

I'm playing with j2objc to see if I can use guava in my project. My project is quite simple: A single view application configured for j2obcj (https://github.com/google/j2objc/wiki/Xcode-Build-Rules) with a custom line added to the…
7ynk3r
  • 958
  • 13
  • 17
1
vote
1 answer

j2objc Compile error: Undefined symbols for architecture arm64:

i get the following error when i run j2objcc -o blssmibi BLSSMIBI.o Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_Curve", referenced from: objc-class-ref in BLSSMIBI.o ld: symbol(s) not found for architecture x86_64 clang:…
cheah
  • 13
  • 2
1
vote
1 answer

Using guava with j2objc

I'm trying to use guava with j2objc but I'm getting the error: j2objc TestJava.java translating TestJava.java error: TestJava.java:1: The import com.google.common cannot be resolved error: TestJava.java:10: Lists cannot be resolved Translated 0…
7ynk3r
  • 958
  • 13
  • 17
1
vote
1 answer

j2objc eclipse plugin is not working

I am trying to use the J2objC plugin to convert a working java project. I have downloaded the latest version of the plugin and am using Eclipse Juno. I've got J2objC 0.8 on my machine. I have set an output path and have tried a few different…
1
vote
3 answers

Why does passing a static reference to a class consume memory?

I'm having difficulty understanding why this is consuming memory. I have tried; Allowing more time for ARC to clean up Creating a __weak copy of globals to pass Looked at using __bridge or __bridge_transfer but I don't believe this is…
Lorne K
  • 109
  • 7