c# - Xbuild/Mono errors when building monobjc Native App -


i'm trying build native monobjc bundle command line using xbuild (on osx 10.8). i've built cocoa application using xamarin studios , monobjc addin. can run "create monobjc bundle" > "export native application" , app redistributable. however, when try run xbuild command terminal, following:

     $xbuild /p:configuration=release testproject.csproj /t:bundlenative build failed.     errors:     /users/test/documents/test/testproject.csproj (bundlenative) ->      /library/frameworks/mono.framework/versions/2.10.12/lib/mono/4.0/monobjc.cocoaapplication.targets (corebundlenative target) ->      /library/frameworks/mono.framework/versions/2.10.12/lib/mono/4.0/monobjc.cocoaapplication.targets: error : clang: warning: argument unused during compilation: '-pthread'     /library/frameworks/mono.framework/versions/2.10.12/lib/mono/4.0/monobjc.cocoaapplication.targets: error : error executing task encryptfiles: required property 'encryptionseed' not set.      0 warning(s)     2 error(s) 

i've set <encryptionseed> attribute of csproj arbitrary value see if issue. alas, i've gotten nowhere. can see i'm using mono 2.10.12 (the sdk) , monobjc 4.0.2167.11 installed via xamarin. appreciated.

update 1: fixed encryption seed error installing newest monobjc bridge via monobjc package monobjc download page (5.0.2165.0), still error pthread, occurs during embed application step:

 compiling...         arguments: ' -os -gdwarf-2  -arch i386 -mmacosx-version-min=10.8  -i"bin/release//embed"  -c "bin/release//embed/main.c" -o "bin/release//embed/main.o" -d_thread_safe -i/library/frameworks/mono.framework/versions/2.10.12/include/mono-2.0  '         -pthread -l/library/frameworks/mono.framework/versions/2.10.12/lib -lmono-2.0 -lpthread           linking...         arguments: '  -arch i386 -mmacosx-version-min=10.8  -l"bin/release//embed" -pthread -l/library/frameworks/mono.framework/versions/2.10.12/lib -lmono-2.0 -lpthread   -lz  -lmonobjc  -ltest_exe -lmono_posix_dll -lmono_security_dll -lmonobjc_appkit_dll -lmonobjc_dll -lmonobjc_foundation_dll -lmonobjc_scriptingbridge_dll -lmscorlib_dll -lmswordinterface_dll -lsystem_configuration_dll -lsystem_core_dll -lsystem_dll -lsystem_runtime_serialization_dll -lsystem_security_dll -lsystem_xml_dll -lmachine_config -o "bin/release//embed/test" "bin/release//embed/main.o" ' /library/frameworks/mono.framework/versions/2.10.12/lib/mono/4.0/monobjc.cocoaapplication.targets: error : clang: warning: argument unused during compilation: '-pthread'         embedding done 

the encryptionseed tag introduced in latest monobjc monodevelop addin handle resources encryption , handled monobjc 5.0 serie.

as clang message, not quite error. if read description, notice warning. clang compiler called through process class allow capture of standard output , error streams. unfortunately, warnings reported on standard error stream: why embedding task reports errors when there warnings.

please file bug if think problem showstopper.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -