Override PLIST file for iOS builds using VS2015 TACO to work around CB-10493 [iOS] Missing icon.png - visual-studio-cordova

I am using VS2015 TACO to build a cordova application using Cordova 6.0 and Cordova-ios 4.0.1.
There is a registered issue CB-10493 [iOS] Missing icon.png
https://issues.apache.org/jira/browse/CB-10493
The work around for the issue requires you to update the PLIST file to remove a particular keyed entry from the PLIST file. Unfortunately, because of the way that VS2015 TACO rebuilds the Cordova project on build, any manual edits to the files in the platforms folder is overwritten.
Directions on how to update the file was discussed here:
https://taco.visualstudio.com/en-us/docs/configure-app/#VisualAssets
However upon putting the file in place, it seems to be ignored. I copied the PLIST file in the platforms folder to: res/native/ios/myapp/myapp-Info.plist and removed the requisite entries. I then removed the platforms folder and rebuilt the application. This made no impact on the contents of the PLIST file in the platforms folder.
I could rollback versions for Cordova, however as this would involve also rolling back a number of plugins with fixes that I want to keep, I would prefer not to do this.
I would really appreciate if I could get clear working directions on how to implement an effective work-around to removing the offending entries from the PLIST file within a VS2015 TACO project.
Thanks in advance.

Okay - discovered that despite the fact that the PLIST file in the platforms folder is not being overwritten, the use of a PLIST file in the native folder is still effective in working around the issue.
Discovered this when syntax errors entered my file and my build broke, despite the platforms copy of the PLIST still being exactly the same as the original.

Related

Preview Failed - Visual Studio will look for typescript files when publishing even when they are not included

I'd like to do the inverse of this question/answer:
How to include TypeScript files when publishing?
The thing is that I'm trying to publish an ASP.NET MVC 5 Project. Unfortunately the dreaded Visual Studio and the hungry Jack Typescript interpreter ignores any tsconfig.json file and decides to go deep down and look for any .ts file that is not accompanied by a .js. I have lots of npm packages nested down and some of them have uncompiled typescript files.
Funny thing is, that they are not included in the project (not even an exclamation mark). (I even checked for the .csproj and no files were found).
Is this a bug? How can I prevent this from happening? Using VS 2015.2 (Update 2).
I had a very similar issue. Publish kept failing because it couldn't find foo.js as it wasn't in the same directory as my ts/tsconfig files, even though outDir was set to another location. I don't know if it is a bug or not but I couldn't figure it out using the tsconfig. Instead, I was able to get things working by using the inbuilt TypeScript Build settings instead.
First, I deleted all tsconfig files from my project (I made sure I kept a backup just in case). The TypeScript Build was originally greyed out because I had the tsconfig files in my project.
Next, I created a new folder directly under Scripts to save the js files into.
I then went to Project Properties and selected the TypeScript Build tab. Under Output, I checked the Redirect JavaScript output to directory and browsed to the newly created folder. I repeated this for all build configurations.
Finally, I included the new folder in my project and then built. Folders and files which aren't included in the project can be seen as a ghost icon in the Solution Explorer if you have Show All Files icon selected. I think that if you have multiple TypeScript projects with their own tsconfigs, the file structures are replicated under the chosen output directory but I haven't tested it in many cases so I'm not certain.
Obviously I had to redirect my script bundles to the newly created js structure.
When I first followed this process, I got a few build errors mainly due to my own daft mistakes in my TypeScript code which I'd set the tsconfig to conveniently ignore. Another error was multiple references for objects, which I managed to fix by deleting the definitions files and making sure that the Generate declaration files option was unchecked in Typescript Build. Once I fixed those issues though, I was able to publish without that annoying error - happy days!

Exporting entire project in Visual Studio 15

I need to send off this project I've been working on via email so I'd like to just zip up the project folder and send it off. I've done this in previous version of VS with no problem but with Visual studio 15 the project folder only contains the solution file a .vs folder and a packages folder. None of the actual files are included i.e default.aspx and so on.. If I try to zip up this folder and send it off it doesn't open on the other end. I've tried exporting as a template but that didn't really work because it doesn't contain the solution file. Is there any easy way to just export the entire project so that it can be easily opened by another user on a different computer (They need to be able to see each individual file in the solution basically how you see it in the solution explorer)?
I use CleanProject for this, amazingly, it still does a fantastic job with my VS2015 projects. It cleans (removes bin/, obj/ etc) and then creates a minimum zipfile.
You can download it here:
https://visualstudiogallery.msdn.microsoft.com/bca632e0-3948-43c8-b337-da47275717b6
It does not work from VS2015, but from the file explorer. If that doesen't freak you out, it's a great timesaver for those situations :)

Why Files misteriously disappear from xcode with this strange symptom?

I use time machine and drop box to synchronize stuffs.
Recently I found that some files are gone.
However, the project compiles just fine as if the file is there. My friend cannot compile though.
This is very frustating. I got to find the missing files and then restore it from time machine and then readd that to xcode. I don't even know what files are missing.
I used dropbox and time machine. Looks like file disappear, the file names becomes "red" in xcode for a while and then poof it's gone. Xcode automatically remove the files from the project. The project still compiles fine which is frustating. If the project doesn't compile, I will know ah this file is missing.
Looks like somehow xcode still have the file but doesn't show it. Files is not on finder either.
What could possibly be the explanation and how to fix that.
I have clean projects to make sure that my computer do not use cached files.
It still compile fines in my computer
The file is still missing in project navigator
My friends' computer that uses the EXACT same files (connected to drop box) cannot compile
For example, xcdatamodeld files are crucial. In my computer it still run fine without that file even though that file is obviously needed. Xcode behaves as if the file is there all along.
My friends' try to compile the project and crash.
Also there is a PNG file. In my computer it runs fine with the icons showing up. In my friends computer the icons doesn't show up at all.
For anyone who still have the problem, in my case Xcode6. It turns out somehow the "Show only files with source control status" and "Show recent file button" is enable. It located in the bottom of left sidebar.
This somehow happen after I update os to Yosemite.
Cheers
Go to the project navigator (top left folder symbol). Files that are not found by XCode are displayed in red. But since your project compiles fine, there should not be any that are required. Now click one of the "missing" files to activate it. Open the utility area on the right side, and show file inspector. Under "location" you find the full path of this file. Probably, your XCode project uses just references to these "missing" files that are stored somewhere else, and not in your project folder.
I had the same problem ..then I added the files explicitly into our project…which resulted into Duplicate Symbols error …we solved that by following….
In Your Project go to targets-
At the bottom Bar of your Targets there are three options..
1.Add Target
2. Validate Settings
3. Build RUle..
Click on validate Settings….it will ask for you to remove the Duplicated files from the project do it…ur project would run fine

iOS - Xcode 4 Missing Files in Project

At some point I must have moved files from one location to another using Finder (not Xcode). Now Xcode constantly complains that the files are missing from the original directory. In the Errors portion of Xcode, under "Project" it lists a dozen or so "Missing files" all labeled in red. How do I let Xcode know that the move was intentional and that these files aren't actually missing?
Just in case anyone else runs into this problem: My project was source controlled. Although I had never committed the project, Xcode was complaining about the non-existence of the moved files in the original directory (the directory I originally had the files in before they were moved). What frustrated the situation was that the files didn't even show up as red in the Project Navigator, Xcode would only complain about their non-existence in the Issue Navigator. To solve the problem, I had to go into my source control program (in my case, Cornerstone) and delete the files from the original directory there. The fact that the project was source controlled was the real issue.
just select the red-highlighted files in the navigator, and press delete. They will be removed instantly, not prompted for 'files or reference'.

Use xcode refactoring with a objective-c++ file in the project

I just started using the ZXing SDK in my iPhone project. This requires that include it be renamed to .mm files (objective-c++).
The problem is that because of one file in my project xcode refactoring has been disabled for the entire thing.
Is there a work around to this issue? A way to refactor for everything except that file or a better way to include things? Possibly by making a static lib of third party code?
I can recreate the problem you're having by adding a C++ file to a Cocoa project. I was able to enable the refactoring menu items by selecting a different file in the project navigator and selecting some text. If that doesn't work, you could remove the one file from the project, do the refactoring, and add the file back to the project.

Resources