cancel
Showing results for 
Search instead for 
Did you mean: 

Error while compiling latest IOS NFC source code

SVemp.1
Associate III

Hi,

I am trying to compile the IOS NFC tap source code and I am getting open ssl & J2Objc hearder not found errors.

We are trying to read and write with the ST25DV series of tags.

Details

 Xcode Version :   15.3
 min dev            :   15.0

Downloaded source code version : 7.4.0

Does the Source code support the latest versions of IOS?

Any extra steps needed for proper compilation?

Error:

Compilation errorCompilation error

 

Thanks,

Suresh

 

 

Suresh
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
22 REPLIES 22
SVemp.1
Associate III

Hi Victor,

I again did everything from start.

Followed As per document 9 to 12 pages

1. Download for NFCtap project.

 

2. Downloaded and installed JRE translated into OBJ-C : • https://github.com/google/j2objc/releases.

   did make dist to install 

   it generated multiple folders into "dist" folder. i.e lib,frameworks,..

3. Link Other -ljre_emul –liconv.

4.Updated paths. Kept path of dist folder which is generated above  

5. Setting in J2OBJC_HOME in Xcode and set the value to the J2objC folder
6. Library Search Path: ${J2OBJC_HOME}/lib Setting up
7. J2Objt C code , change J2OBJC_HOME Path to /Users/sai/SATB/j2objc/dist
8. As per 11 page we adding all Files as Import statements in OpenSSL-for-iOS-Bridging-Header.h

SVemp1_1-1716740769088.png

 

5. Open NFCTap project & changed our bundle id , tried to run my iPhone(Xr)
6. Getting error 'J2ObjC_header.h' file not found

 

SVemp1_2-1716740848786.png



7. When  we adding all Files as Import statements in ST25NFCApp-Bridging-Header.h then Swift errors coming

 

Can you help me where i am making mistake?

 

Thanks,

Suresh

 

Suresh
SVemp.1
Associate III

Hi Victor,

Any update?

We are trying JOBJC for the first time, And We kind of stuck.

Can you help me with basic steps and example commands to follow?

Is there any one can help building the project by connecting to our system?

 

 

Thanks,

Suresh

 

Suresh
victor laraison
ST Employee

Hi suresh,

Could we plan a conf call for next week ? I think a remote sharing session would help.

Let me know.

br,

 

SVemp.1
Associate III

Thanks Victor This will be help full,

Is there a posibility for tormorow?

Can you send your convenient time and date? We will be ready for that time.

Can you also send meeting link for the same?

 

Thanks,

Suresh 

 

Suresh
SVemp.1
Associate III

Hi Victor,

Any update on time and date for conference call?

 

 

Thanks,

Suresh

 

Suresh
victor laraison
ST Employee

Hi suresh,
I would need more information before launching a conf call, because I need to be assisted by regional support and marketing.

What  region are you in ? Asia, US, other... ? What company do you work for ? 

thx and br,

 

 

SVemp.1
Associate III

Hi Victor,

Our Company and web site details.

https://safeair.ai/ 

I am remotely working from India(Hyd).

Mean while Can you check below steps.

Can you share any missing steps with screen shots that will be helpfull.

1. Downloaded IOS NFC tap source code(STSW-ST25IOS001)

2.Downloaded Source code from https://github.com/google/j2objc/releases 

SVemp1_0-1717141481343.png

 

3. Build using command $make dist . It took some time and created dist folder with lib,frameworks,include

4.Linking JRE also done.

SVemp1_1-1717142649868.png

5. Updated search paths with dist folder.

SVemp1_2-1717142685945.png

6. There are 2 bridging headers. In which file we need to import header files?

SVemp1_4-1717142882356.png

7. Do we need to download any module and link like below?

SVemp1_5-1717143040064.png

 

 

 

Thanks,

Suresh

 

 

 

 

 

 

 

Suresh
SVemp.1
Associate III

Hi Victor,

Now i am getting below code errors.

Any solution for this?

 

WhatsApp Image 2024-05-31 at 10.50.39 PM (1).jpeg

WhatsApp Image 2024-05-31 at 10.50.39 PM (2).jpeg

WhatsApp Image 2024-05-31 at 10.50.39 PM (3).jpeg

WhatsApp Image 2024-05-31 at 10.50.39 PM (4).jpeg

WhatsApp Image 2024-05-31 at 10.50.39 PM (5).jpeg

WhatsApp Image 2024-05-31 at 10.50.39 PM (6).jpeg

WhatsApp Image 2024-05-31 at 10.50.39 PM.jpeg

       

Thanks,

Suresh

 

Suresh

Hi Suresh,
At least we're making a little progress...

I guess issues are coming from the latest version of J2OBC used. I delivered iOS NFC Tap with J2OBJC V2.4.

What is your version ? 

Thx and br,

 

SVemp.1
Associate III

Hi Victor,

I have used 2.8 release. Let me check with 2.4 version and come back to you.

 

Thanks for the reply.

 

Br

Suresh

Suresh