locked
Suddenly Can't Build - Error Performing Task ACTool RRS feed

  • Question

  • User1195 posted

    All evening been happy making some code changes and testing on my Simulator and IPad. Then go to create an App Store Build (worked 2 weeks Ago) and get the following error :

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Error executing task ACTool: Child element is not expected in this operation. Line 31, position 3. Build FAILED.

    Now my Debug build won't build or recognise any Simulators. Not sure whats happened - common.targets file is not one I would change! This is stopping me getting my next release ready .

    Any ideas?

    Thursday, September 3, 2015 9:16 PM

Answers

  • User116372 posted

    We found a solution to the issues we were experiencing! It ended up being that the .csproj file contained duplicates of the Asset Catalogs. Opening it manually and clearing it out fixed the issue and it compiles fine now!

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, October 1, 2015 5:23 PM

All replies

  • User61409 posted

    I am having a similar issue since I updated to yesterday's Stable version of Xamarin. In VS 2013 this is what I am getting:

    1> Executing task: Xamarin.iOS.Tasks.ACTool 1> Server returned an error. The remote server returned an error: (500) Internal Server Error. 1> Server error code: 500 1> Internal Server Error 1>
    1>
    1> Remote task execution failed. 1> 1>Build FAILED.

    In my Mac, I get the same error but more info:

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Error executing task ACTool: Could not find file "/Users/Carlo/Projects/G2Approval/G2Approval/G2Approval.iOS/Resources/Images.xcassets/AppIcons.appiconset/Contents.json".

    I did report it as a bug since the project was building an running fine a few minutes before the update. Can't seem to find the "missing file" in the full backups (including binaries) I have of project that was built, executed and published.

    I just reported the issue and haven't heard from Xamarin yet. But if anybody in the forum encountered and fixed (or have a workaround) and willing to share the solution... will greatly be appreciated.

    Thanks!

    Friday, September 18, 2015 7:12 PM
  • User108129 posted

    Any update on this error? I'm getting the same thing in VS2015 with the stable release as of today.

    Monday, September 21, 2015 2:08 AM
  • User1195 posted

    Not sure what caused it. I undid all my changes (saved by source control again) and then deleted everything - got all source fresh and built fine. Guess something had become corrupt during checkout.

    Ash..

    Monday, September 21, 2015 7:56 AM
  • User61409 posted

    Just an FYI, I do have a content.json file in my LaunchImage.launchimage folder. The file contains this (empty, as far as the images is concerned):

    { "images": [], "info": { "version": 1, "author": "xcode" } }

    Experimenting, I copied this file in the AppIcons.appiconset folder and it allowed me to compile successfully. Will have to do some testing on the app to see if this actually solves the issue making sure that the icons properly displays.

    Note that although the file is empty my Info.plist does show my App Icons. Hope this helps you guys who are looking around for a workaround.

    Monday, September 21, 2015 4:38 PM
  • User120099 posted

    I also cannot build because of this. Any Help would be awesome.

    Monday, September 28, 2015 4:29 PM
  • User116372 posted

    Bump, I have no idea what's going on but I'm having the same issues. Tried to update my app to fix an issue with dialogs in iOS 9, the change did not go smoothly and I had to revert to the version I committed prior to making changes, and then any time I tried to compile it would fail without a single error.

    I've attached the relevant portion of the output that shows ACTool failing. I have VS printing output with Diagnostic level detail. Please help! :(

    Monday, September 28, 2015 11:31 PM
  • User67204 posted

    I'm running into a very similar issue. Has anyone found a solution to this problem?

    Thursday, October 1, 2015 2:27 PM
  • User67204 posted

    Not sure if this helps anyone but I noticed that even though I was NOT using Asset Catalogs I still had with nodes in my project file. I removed this section and i was able to get past the ACTool error.

    Thursday, October 1, 2015 2:56 PM
  • User116372 posted

    We found a solution to the issues we were experiencing! It ended up being that the .csproj file contained duplicates of the Asset Catalogs. Opening it manually and clearing it out fixed the issue and it compiles fine now!

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, October 1, 2015 5:23 PM
  • User143987 posted

    Thanks Jon! We had the same problem, and your suggestion of editing the .csproj file worked. we removed all of the asset nodes and were able to get past the build error.

    Friday, October 16, 2015 4:59 PM
  • User44088 posted

    Hi all, I met the similar error on building: -> Error: Error initializing task ACTool: Could not load type 'Xamarin.iOS.Tasks.ACTool' from assembly 'Xamarin.iOS.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. (Rial.Ios) Anyone help me?

    Tuesday, October 20, 2015 1:14 PM
  • User17240 posted

    Thanks alot Mike_K! Anyone know why this suddenly became a problem?

    Thursday, October 22, 2015 10:35 AM
  • User169910 posted

    I din't understand what is Mike_K or JonWhite are trying to mention here..Any help please...I am suddenly facing the issue.

    Friday, November 13, 2015 12:57 AM
  • User1225 posted

    I was having this exact ACTool build error and JonWhite's comment was the right solution for me.

    So if you're not using Asset Catalogs and having this error: - open your .csproj file in a text editor - remove all ImageAsset items that reference any \Resources\Images.xcassets files - save the file - reload and build in your IDE (VS/XS)

    Tuesday, November 17, 2015 9:07 AM
  • User16670 posted

    I came across this issue also.

    I found the fix was to delete the ~/Library/Caches/Xamarin/mtbs/builds directory on the build server.

    Thursday, November 26, 2015 3:02 PM
  • User77340 posted

    Deleting those two entries in the project File did the trick for me, as i'am using the launch image and appicons not as sets.

    <ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Contents.json"> <InProject>false</InProject> </ImageAsset> <ImageAsset Include="Resources\Images.xcassets\LaunchImage.launchimage\Contents.json"> <InProject>false</InProject> </ImageAsset>

    Monday, August 1, 2016 7:13 AM
  • User294116 posted

    Simply:

    Go to your xcassets in iOS project. (Double click)

    Right Click on the last element your added. You can know the last element you added going physically to the xcassets folder in Finder and order by creation date

    Select Remove and in the popup select Delete.

    Once you have removed you have to clean and build your project.

    Now you can add again that last element and the project should run.

    Monday, July 24, 2017 4:11 PM
  • User334122 posted

    @SebRichards said: I came across this issue also. hjgfhjvgj I found the fix was to delete the ~/Library/Caches/Xamarin/mtbs/builds directory on the build server.

    bfn

    Wednesday, July 26, 2017 9:45 AM
  • User151404 posted

    In my case I had a typo in the bundle ID in the info.plist file!

    Thursday, May 28, 2020 3:12 PM