# Simple CSV parser (elements file importer)

**URL:** https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008
**Category:** Fire
**Created:** [March 7, 2023, 12:09pm UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008 "2023-03-07T12:09:42Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![JeremyK](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/j/ee7513/32.png) [@JeremyK](https://talk.remobjects.com/u/JeremyK)
#### Post date: [March 7, 2023, 12:09pm UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008/1 "2023-03-07T12:09:43Z")

</div>

I want to import a CSV file into an iOS project, and tried to import the one I found at [GitHub - davedelong/CHCSVParser: A proper CSV parser for Objective-C](https://github.com/davedelong/CHCSVParser.git) using the add and convert file, but it doesn’t really import. Am I expecting too much here, or should this work?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [March 7, 2023, 3:43pm UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008/2 "2023-03-07T15:43:09Z")

</div>

> [@JeremyK](#):
>
> Am I expecting too much here, or should this work?

I’d need a bit more to go on here, in terms of what you did and what and how it failed…

---

<div class="post-metadata">

### Author: ![JeremyK](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/j/ee7513/32.png) [@JeremyK](https://talk.remobjects.com/u/JeremyK)
#### Post date: [March 7, 2023, 3:48pm UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008/3 "2023-03-07T15:48:14Z")

</div>

Fire/Project/Add & Convert Files/Convert to Oxygene/Add & Convert Objective-C Files  
Lots of different errors. I was just wondering if this feature is intended to be used like this? If not, I’ll have to write one, but this one seems to do the job.

 ![image](https://talk.remobjects.com/uploads/default/original/3X/2/b/2bfa61d08fb4a553f2859d41d22fc70ffbfb3af8.jpeg)  
 ![image](https://talk.remobjects.com/uploads/default/original/3X/9/f/9fc919082a5c4f6da014f22045ba1977146fe50f.jpeg)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [March 7, 2023, 3:53pm UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008/4 "2023-03-07T15:53:54Z")

</div>

> [@JeremyK](#):
>
> Fire/Project/Add & Convert Files/Convert to Oxygene/Add & Convert Objective-C Files

See, glad i asked, because converting Objective-C code via Oxidizer is very distinct from _importing_ a pre-build C library with a .h file, which I thought you were doing, and would have been the path i’d have recommended. 😉

Objective-C code can be very tricky to convert with Oxidizer unless it’s very clean and straightforward. So I am not surprised this fails. I can log an issue to look at the most glaring aspects it fails on for this file, if you like, but i’d suggest going the import route, if you want to use this code. If you want a fully Elements-native solution, you’d probably be better off just writing the CSV parsing from scratch than trying to convert the ObjC.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [March 7, 2023, 3:55pm UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008/5 "2023-03-07T15:55:18Z")

</div>

Logged as [bugs://E26440](https://www.remobjects.com/portal/bugs/?id=E26440).

---

<div class="post-metadata">

### Author: ![JeremyK](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/j/ee7513/32.png) [@JeremyK](https://talk.remobjects.com/u/JeremyK)
#### Post date: [March 7, 2023, 4:02pm UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008/6 "2023-03-07T16:02:24Z")

</div>

Where’s the import library option then? Is this where I’d have to turn the obj-c files into a library to then drag into the references and make an fx file? Or is there a simpler mechanism? As you say I may be better just writing my own parser.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [March 7, 2023, 4:06pm UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008/7 "2023-03-07T16:06:10Z")

</div>

> [@JeremyK](#):
>
> Where’s the import library option then?

Check out [Import Projects](https://docs.elementscompiler.com/Tools/FXGen/ImportProjects/)

> [@JeremyK](#):
>
> Is this where I’d have to turn the obj-c files into a library to then drag into the references and make an fx file?

Yes, you’d build the library with Xcode and then import the .a/.h (or .framework)

---

<div class="post-metadata">

### Author: ![JeremyK](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/j/ee7513/32.png) [@JeremyK](https://talk.remobjects.com/u/JeremyK)
#### Post date: [March 7, 2023, 5:06pm UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008/8 "2023-03-07T17:06:18Z")

</div>

Thanks, I’ll investigate.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [March 23, 2023, 11:12am UTC](https://talk.remobjects.com/t/simple-csv-parser-elements-file-importer/28008/9 "2023-03-23T11:12:33Z")

</div>

[bugs://E26440](https://www.remobjects.com/portal/bugs/?id=E26440) was closed as fixed.
