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 6755545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:24:54+00:00 2026-05-26T13:24:54+00:00

Has anyone actually managed to accomplish this? I tried the approach suggested here ,

  • 0

Has anyone actually managed to accomplish this?

I tried the approach suggested here, but no matter how i generate the precompiled serializer, mtouch fails to copy it to the app bundle, thus resulting in a runtime exception. I think this happens because the resulting binary may not be compatible with MonoTouch.

I have tried the following:

1) I used the provided iOs and Mono binaries included in the latest (r450 as this time) build in order to generate the precompiled serializer.

2) I used the source code to produce two different assemblies, built for MonoTouch. The first assembly is built using the symbols FEAT_SAFE;MONOTOUCH;NO_RUNTIME and the second is built using the symbols FEAT_SAFE;MONOTOUCH;FEAT_COMPILER. I have defined the symbol MONOTOUCH and used it the same as MONODROID symbol is used (see file CallbackAttribute.cs and Helpers.cs in the protobuf-net source).

I the used this two assemblies and tried to generate the precompiled serializer from a MonoTouch application in the simulator.

But no matter which version of the precompiled serializer i use, the assembly is still not included in the app bundle, with mtouch issuing: “Warning: Library ‘MyLibrary.dll’ missing in app bundle, cannot extract content”, despite the fact that i do reference it in my code.

  • 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-26T13:24:55+00:00Added an answer on May 26, 2026 at 1:24 pm

    I finally got it. It seems that when the actual assembly name is different from the file name that contains it mtouch will not include it in the application bundle. And that was happening in my case. I am generating the assembly like this:

    model.Compile("Taxi.ProtoBufSerializers.MQTTContractsSerializer", "MQTTContractsSerializer.dll");
    

    So, given that Protobuf-Net sets the assembly name to the first parameter of this method and saves it in the file name given by the second parameter, mtouch will fail to include it in the application bundle.

    However, i wanted to keep my namespace so i fiddled with Protobuf-Net’s source code to generate the assembly like this:

    • File path: Given as the second parameter;
    • Assembly name: Path.GetFileNameWithoutExtension(path);
    • Module name: Path.GetFileName(path).

    I am not performing any validations on the path at this time, but i don’t need to do this just yet.

    And voila: The sample works both on the simulator and the device.

    Last but not least, i don’t know if this is the way mtouch is supposed to behave or if it is a bug. I will however file a bug report against it.

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

Sidebar

Related Questions

Aside from scalability issues, has anyone here actually stumbled upon a web-development problem where
Has anyone using .net actually worked out how to successfully sign a signature to
Has anyone successfully tried minifying AND concatenating all the jqGrid locale files so that
Has anyone ever run into this issue before? Sometimes the string displays, sometimes half
Has anyone met this error? Right now i am trying to do switch from
Has anyone tried using the NHibernate Velocity L2 cache provider against the Azure AppFabric
Has anyone else come across this at all? I used to be able to
Has anyone ported IJG JPEG code to C#? Are there any purely-managed JPEG libraries
I'm wondering if anyone has managed to integrate SASS into their RubyMine environment, and
This question has been asked, in one form or another, a dozen times here,

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.