Error when trying to Deploy MonoTouch App to iPhone - iphone

I am trying to deploy my MonoTouch Application to my iPhone. I have set up the profile on the phone and purchased the MonoTouch license. However when I try to deploy to the iPhone I am getting the following error:
mtouch failed with no output(1)
The compiler is giving this error:
Error: You should provide one root assembly only.
This only appears when I try to deploy the application to the iPhone. If I use the simulator it compiles and runs fine.
Anyone have any ideas how to fix this?
UPDATE:
Actually this error only occurs if I try to Debug on the iPhone. If I use the Release build option it actually deploys fine.

This error occurs when more than one argument to 'mtouch' is not preceded by an option.
If you're using MonoDevelop then this could occur if you added some "Additional mtouch arguments" (in Options | iPhone Build). Since they could be different in Build and Debug it could explain why you have no issue in Release mode. Try matching the Debug arguments to the Release arguments.
If you're using mtouch on the command line then check every one of your arguments. Only one should not be prefixed, and this should be the name of your main assembly.

Related

XCode multiple errors (No such command "-no_deduplicate")

I've build an app which is using firebase auth, database, storage and core.
But when I build my app, there are coming multiple errors, one of them is
"No such command: '-no_deduplicate'".
And file-not-found errors that are searching any simulator architecture file containing the path /i386/, but I haven't memorized them.
Thank you for your help,
MarvMan
IIRC it's a warning and if you run your app in build mode instead of dev mode this specific warning goes away

Shell script invocation error xcode 4.5.1

when i am trying to run my app on device i got the following error.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 6.0'.
After changing any ios sdk in build settings to iPhone Developer now am getting the following error.
/Users/chandrasekhar/Library/Developer/Xcode/DerivedData/UnitConverter-
dhznawqrnkbqwvcrkgpzpkjmooox/Build/Intermediates/UnitConverter.build/Debug-
iphoneos/UnitConverter.build/Script-50524F424C454D533F.sh: line 4:
/Library/JailCoder/Entitlements/Entitlements.py: No such file or directory
help me solve this error. Reinstalling Xcode is not working
Download Jailcoder again and Unpatch the project.
It looks like the script is using JailCoder, which doesn't appear to be installed (or requires re-installing).
got It! I couldn't get jailcoder to unpatch so what you must do is go into the build phases and remove the part that inserts jailcoder into the build phase pretty easy once you take the time to dig into the guts of the app!

Xcode: Build error: tried to link DWARF for unsupported file:

I've changed something in my project settings and now when I run this project to build and debug I get build error:
GenerateDSYMFile error: tried to link DWARF for unsupported file: "correct path to my application executable here"
but! when I press RUN once more it works like a charm and my app starts in Simulator.
so I need press cmd-R twice every time to debug my app.
it was normal in previous version of my project so I don't know what changes I've made %)
all my other projects works fine and I can just recreate this project, but I want to figured it out - what trigger this error. I tried to ask this question on Apple devforums but without any success.
any help here? thx )
ps this error shows as Xcode3 as Xcode4
There is same file name as your project name in bundle so get rid of that file by renaming it and use accordingly.
Clean the project and run the project. Good to go.
not sure if you figured out what the problem was, had the same thing happen to me. I had made a text file called the same name as my project - when I got rid of that it fixed it.
Try changing under Build Options > Debug Information Format. See if that helps.
I got it when I tried to run my app in the simulator.
Xcode said ATTACHING TO PROCESS but hung.
So had to kill XCode and restart.
When I ran project again it built ok but when I said RUN it got that link error.
I fixed it by deleting the app in the Simulator and hit run again and it worked.
In my case It was a plist file causing the error.
I renamed the file and updated Info.plist File in Target Build Settings and that fixed it.
I got the same error: "error: tried to link DWARF for unsupported file: /Volumes/..."
This error wasn't shown before up until I changed to Xcode 6 in my Jenkins server. Before we had the same setting of the App and was building without any problem.
I was building the app as Realase version via Jenkins and I had the setting to build with the following configuration "-configuration Release" and the parameter "Debug Information Format" in Build Setting of the app was set to DWARF-with-dSYM.
In order to solve this error I changed in the targets in Xcode in Build Settings in the parameter "Debug Information Format" to DWARF only and I didn't get any error from Jenkins.
The apple developer documentation says this regarding the different values of this parameter:
DEBUG_INFORMATION_FORMAT (Debug Information Format)
Description: Identifier. Identifies the format used to store the binary’s debug information.
Values:
stabs: Use the Stabs format and place the debug information in the binary.
dwarf: Use the DWARF format and place the debug information in the binary.
dwarf-with-dsym: Use the DWARF format and place the debug information in a dSYM file.
Default value:
dwarf
Prerequisite for:
“GCC_ENABLE_SYMBOL_SEPARATION (Separate PCH Symbols).”
Link: https://developer.apple.com/library/mac/documentation/developertools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html

problem with linked libraries or classes?

i recently finished one project..now when i create a new navigation project in xcode and try to run it in simulator the application crashes and error in debugger window shows that i am missing some classes which i had used in my previous project(not in this one) and in some cases it gives
Couldn't register com.yourcompany.GuessGame with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.
is this some problem related to linked libraries??
I assume you're tried restarting the simulator / restarting XCode / cleaning your build (build->Clean All Targets) ?
What's the name of your first project beacuse if it's com.yourcomany.GuessGame as well, you might run into problems?

iPhone Application crashes in "AdHoc" mode

i got a little application which is working very well with my "debug" configuration on my phone and in simulator.
i created a adhoc provisioning profile, and added a "beta" configuration to it.
trying to launch the application with the ad-hoc configuration crashes my application immediatelly.
the console output is:
Running…
Error launching remote program: failed to get the task for process 2434.
Error launching remote program: failed to get the task for process 2434.
The program being debugged is not being run.
The program being debugged is not being run.
i also created a dist.plsit, unchecked the get-tast-allow and setted this file in my built settings under code signing.
does anyone have an idea?
thanks!
Sometimes when you change lots of things, especially build configs, xcodebuild doesn't seem to figure out which files are stale and links in old stuff that needs to be rebuilt. Try doing a Clean All or just delete your build directory from the project dir. That seems to solve most of these bizarre-ass unexplainable problems for me.
simple thing. i clicked "built and run" instead of "built".
an ad-hoc version cannot be debugged :D