2014-02-28 3 views
2

저는 iOS 앱 프로젝트를 가지고 있고 Visual Studio (Mac 빌드 호스트와 페어링 됨)에서 잘 빌드됩니다. MSBuild 명령을 사용하여이 프로젝트를 빌드하여 Teamcity를 내 빌드에 사용할 수있게하려고합니다. (제 빌드 에이전트는 Mac 빌드 호스트와 쌍을 이룰 Windows 머신입니다).MSBuild를 사용하여 Xamarin iOS 앱을 만들려면 어떻게해야합니까?

현재 나는 다음 명령을 실행

msbuild MyApp.App.iOS.csproj /t:_RemoteBuild /p:ServerAddress=macmini2.local;Configuration="Debug";Platform="iPhoneSimulator";OutputPath="C:\Projects\MySolution\MyApp.App.iOS\bin\iPhoneSimulator\Debug" 

을 그리고 이것은 제 2 개 라이브러리 프로젝트를 구축,하지만 내 주요 프로젝트를 빌드 할 때 실패 할 것 같다 : 순간

_GenerateBundleContentDir: 
    Preparing application bundle 
    Copying file from "C:\Projects\MySolution\MyApp.App.iOS\bin\iPhoneSimulator\Debug\MyApp.Business.Core.dll" to "C:\Projects\MySolution\MyApp.App.iOS\obj\iPhoneSimulator\Debug\build_package\assemblies\MyApp.Business.Core.dll". 
    Copying file from "C:\Projects\MySolution\MyApp.App.iOS\bin\iPhoneSimulator\Debug\MyApp.Business.Core.pdb" to "C:\Projects\MySolution\MyApp.App.iOS\obj\iPhoneSimulator\Debug\build_package\assemblies\MyApp.Business.Core.pdb". 
    Copying file from "C:\Projects\MySolution\MyApp.App.iOS\bin\iPhoneSimulator\Debug\MyApp.Business.Core.dll.mdb" to "C:\Projects\MySolution\MyApp.App.iOS\obj\iPhoneSimulator\Debug\build_package\assemblies\MyApp.Business.Core.dll.mdb". 
    Copying file from "C:\Projects\MySolution\MyApp.App.iOS\bin\iPhoneSimulator\Debug\MyApp.Business.iOS.dll" to "C:\Projects\MySolution\MyApp.App.iOS\obj\iPhoneSimulator\Debug\build_package\assemblies\MyApp.Business.iOS.dll". 
    Copying file from "C:\Projects\MySolution\MyApp.App.iOS\bin\iPhoneSimulator\Debug\MyApp.Business.iOS.pdb" to "C:\Projects\MySolution\MyApp.App.iOS\obj\iPhoneSimulator\Debug\build_package\assemblies\MyApp.Business.iOS.pdb". 
    Copying file from "C:\Projects\MySolution\MyApp.App.iOS\bin\iPhoneSimulator\Debug\MyApp.Business.iOS.dll.mdb" to "C:\Projects\MySolution\MyApp.App.iOS\obj\iPhoneSimulator\Debug\build_package\assemblies\MyApp.Business.iOS.dll.mdb". 
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets(195,3): error MSB3030: Could not copy the file "C:\Projects\MySolution\MyApp.App.iOS\bin\iPhoneSimulator\Debug\MyAppAppiOS.exe" because it was not found. [C:\Projects\MySolution\MyApp.App.iOS\MyApp.App.iOS.csproj] 

답변

2

를, 그렇지 않은 msbuild를 사용하여 Xamarin.iOS 프로젝트를 구축 할 수 있습니다 (변경 될시기는 확실하지 않음). 답에 대한 http://forums.xamarin.com/discussion/comment/44484/#Comment_44484

+0

감사 :

그러나 맥에 작업을 위임 할 가능성이 보인다. 자 마린에서 일하십니까? 그렇지 않다면 공식 출처가 있습니까? 그런데 다소 놀랍습니다 ... 실제로 Windows 기반 팀 사이트 에이전트를 사용하여 xamarin 프로젝트를 구축 할 수 있습니까? 이 잘못 생각하고 있니? – user2320724

+0

예, 저는 Xamarin에서 일합니다. 게시물을 제안 된 솔루션으로 업데이트했습니다. –

+1

구식입니다. Xamarin Studio (Mac OS X 용)는 msbuild를 Mac에 명령 줄 도구로 설치합니다. –

관련 문제