Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7060199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:19:26+00:00 2026-05-28T04:19:26+00:00

First, please forgive and point out if I am to use some other protocol

  • 0

First, please forgive and point out if I am to use some other protocol for referencing another thread/post.

There was a previous thread how to compile spatialite for iOS where the top answer partly described building spatialite as a static library for iOS. The answer included the text:

“Once you’ve drag n drop the .a (both are required to work in the simulator AND on the real hardware), you can initialize spatialite by just invoking spatialite_init(1).”

I am guessing this is translated to some version of the following?

Xcode 4

  1. File->New->New Target->iOS->Framework & Library->Cocoa Touch Static Library

  2. Name the library – libSpatialite_TedS

  3. Drag the header files to libSpatialite_TedS -> Copy Headers (question here … there is a spatialite.h file in the ‘headers’ directory of the ‘spatialite2.3.1.zip’ download. Then in the subdirectory ‘spatialite’ there is another spatialite.h that is not an identical file and is obviously needed. Do we just drag the header files from ‘headers’ directory, then drag the directory ‘spatialite’ as a directory into ‘Copy Headers’ area of our Xcode static library ‘myNewLibrary’?)

  4. Drag the ‘.a files’ libSPATIALITE2.3.1_arm.a & libSPATIALITE2.3.1_x86.a

  5. Shouldn’t we have some ‘.m’ files to go with these headers in the ‘Compile Sources’ field?

Now, without referencing the libSpatialite_TedS in my project, when I ‘Command-B’ to build, the project build succeeds. However, when I look for the compiled product in

/Users/Admin/Library/Developer/Xcode/DerivedData/MyProject-gutnkbwqqonzgxbcmfzzzkadqhid/Build/Products/Release-iphonesimulator

I see build’s products, but they do not include libSpatialite_TedS.

Is this because the compiler is ‘smart’ and recognizes that none of the header/.a files are referenced in the project so it does not bother compiling them?

And, is this the correct way to go about achieving the objective of the original poster how to compile spatialite for iOS?

Many thanks,
Ted S

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:19:26+00:00Added an answer on May 28, 2026 at 4:19 am

    I was running into linker errors with the original poster too, but solved it by including libsqlite3.dylib, libstc++.dylib, and libiconv.dylib in the target.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First post ever so please forgive if I am out of line. StreamWriter noteswriter
This is my first post, and first please forgive me for my poor english.
[please forgive formatting errors-- first post here and I tried earnestly to do it
This is my first post, so please forgive me if this question has been
This is my first post to Stack Overflow so please forgive me if I
This is my first post. Please forgive me for asking a basic question as
Okay this is my first post here so please forgive me if i mess
First, please forgive my bad english ;) I want to use the windows function
This is my first post on Stack, so please bear with me if I
I am relatively new to ggplot, so please forgive me if some of my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.