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

  • Home
  • SEARCH
  • 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 4091098
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:19:23+00:00 2026-05-20T19:19:23+00:00

I am attempting to embed a Mono library and MonoTouch into an iPhone application.

  • 0

I am attempting to embed a Mono library and MonoTouch into an iPhone application. I had everything working and then something happened on my machine (MonoTouch update?) and now I am unable to link the application when targeting the device. Everything builds fine for the simulator, but I get over a thousand warnings and some errors when targeting the device. The Mono libraries that it is trying to link against are the wrong architecture.

ld: warning: ARM function mono_aot_version not 4-byte aligned
ld: warning: ARM function mono_aot_full_aot not 4-byte aligned
ld: warning: ARM function mono_runtime_version not 4-byte aligned
ld: warning: ARM function mono_aot_assembly_name not 4-byte aligned
ld: warning: ARM function name_0 not 4-byte aligned
ld: warning: ARM function name_1 not 4-byte aligned
ld: warning: ARM function name_2 not 4-byte aligned
...
... lots of these warnings
...
ld: warning: ARM function name_53 not 4-byte aligned
ld: warning: ARM function name_54 not 4-byte aligned
ld: warning: ARM function name_55 not 4-byte aligned
ld: warning: ARM function name_56 not 4-byte aligned
ld: warning: ignoring file /Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmono.a, file was built for archive which is not the architecture being linked (armv7)
ld: warning: ignoring file /Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonotouch.a, file was built for archive which is not the architecture being linked (armv7)
Undefined symbols for architecture armv7:
  "_monotouch_setup_classmap", referenced from:
      _monotouch_create_classes in registrar.o
  "_mono_object_new", referenced from:
      -[CalcEvaluator init] in CalcEvaluator.o
  "_mono_aot_register_module", referenced from:
      -[CalcEvaluator init] in CalcEvaluator.o
  "_mono_jit_init", referenced from:
  -[CalcEvaluator init] in CalcEvaluator.o
  "_mono_runtime_object_init", referenced from:
      -[CalcEvaluator init] in CalcEvaluator.o
  "_mono_assembly_get_image", referenced from:
      -[CalcEvaluator init] in CalcEvaluator.o
  "_mono_assembly_open", referenced from:
      -[CalcEvaluator init] in CalcEvaluator.o
  "_mono_jit_set_aot_only", referenced from:
      -[CalcEvaluator init] in CalcEvaluator.o
  "_mono_class_from_name", referenced from:
      -[CalcEvaluator init] in CalcEvaluator.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status

My guess is that it has something to do with MonoTouch not being activated. I’ve tried re-installing MonoTouch and re-activating MonoTouch. Neither had any affect on errors.

Other Linker Flags

-ObjC -L/Developer/MonoTouch/SDKs/MonoTouch.$(PLATFORM_NAME).sdk/usr/lib -lmono -lmonotouch -all_load

Mono Version

$ mono -V
Mono JIT compiler version 2.6.7 (tarball Tue Aug 24 16:33:27 MDT 2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS:           normal
GC:            Included Boehm (with typed GC)
SIGSEGV:       normal
Notification:  Thread + polling
Architecture:  x86
Disabled:      none

MonoTouch Version

$ /Developer/MonoTouch/usr/bin/mtouch --version
mtouch 3.2.6.9797

I can take this same project and build it on another machine and it builds as expected. Any help in tracking this down is much appreciated.

  • 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-20T19:19:23+00:00Added an answer on May 20, 2026 at 7:19 pm

    The 4.3 SDK does not allow linking an armv6 library into an armv7 app. Either change your application to target armv6 only, or upgrade to MonoTouch 4.

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

Sidebar

Related Questions

I'm attempting, poorly, to implement an achievement system into my Ruby on Rails application.
Attempting to insert an escape character into a table results in a warning. For
I'm attempting to embed an HTML5 audio element pointing to MP3 or OGG data
Attempting to print out a list of values from 2 different variables that are
Attempting to deploy a MOSS solution to a UAT server from dev server for
When attempting to compile my C# project, I get the following error: 'C:\Documents and
When attempting to call functions in math.h , I'm getting link errors like the
When attempting to understand how a SQL statement is executing, it is sometimes recommended
Does attempting to develop some sort of game, even just as a hobby during
Scenario: Attempting to import many (>100), large(>1M recs) flat-files (csv). Problem: Many records are

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.