osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Assets.Car Problem via IntelliJ


UPDATE
OK, not All the Image files are in the root folder
THX to ERIC for getting me to relook at this:-(

I used:
The Program Structure -> Modules -> iOS - > Files and Folders to Package had
……../src/APPLE_ASSETS (path to the Assets.car and images) on the LHS
And
 .  (ie dot) on the RHS pane

And then I had to add some icon entries to get it to compile

But no all Image files are in the root directory???

Is there a command (not directly using ADT) I can add to one of the IntelliJ IDEA panes to copy the contents of
The ASSETS directory to the root of the IPA

TIA

Phil.

> On 9 May 2018, at 07:30, Philip Medlam <philip.medlam@xxxxxxxxx> wrote:
> 
> So, summary so far,
> All the (I believe) correct Images and the Asset.car file are in the Compiled App
> I looked and they are in the root directory of the App
> 
> When I upload to the iStore I get:
> 		ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'Icon-167.png'"
> 		ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'Icon@xxxxxx’"
> 
> 
> Phil
> 
>> On 8 May 2018, at 22:00, Philip Medlam <philip.medlam@xxxxxxxxx <mailto:philip.medlam@xxxxxxxxx>> wrote:
>> 
>> No, it’s not working, 
>> But adding the Icon files and the Assets file via
>> Project Structure -> Modules -> iOS
>> Puts those files in the build, which I have an image of Below or via:
>> https://www.dropbox.com/s/jd13fjp1zy11tm1/2.tiff?dl=0 <https://www.dropbox.com/s/jd13fjp1zy11tm1/2.tiff?dl=0>
>> 
>> <2.tiff>
>> 
>> Phil
>> 
>> 
>>> On 8 May 2018, at 21:07, Erik J. Thomas <erik@xxxxxxxxxx <mailto:erik@xxxxxxxxxx>> wrote:
>>> 
>>> Are you saying this is working now? Because simply adding them all to your src directory will NOT make this work.
>>> 
>>> The icons need to be copied to the package root folder of the IPA during the build. Placing files in src will NOT do that for you. Move all your src/icons to a separate directory outside of src, and add a File Copy directive to the iOS tab in your project module settings in IntelliJ IDEA. 
>>> 
>>> Do a release packaging of your app, and go into the output directory and find the IPA file, and open it to view the contents of the IPA and ensure Assets.car and all the icon files are in the package root folder of the IPA. If so, then you should be good to go.
>>> 
>>> On May 8, 2018, at 11:59 AM, Philip Medlam <philip.medlam@xxxxxxxxx <mailto:philip.medlam@xxxxxxxxx>> wrote:
>>> 
>>> THX Eric,
>>> I believe I have all the necessary icons which are in the Assets file
>>> (As this was auto generated as were the icons from the website mentioned)
>>>  in the same location as the Assets file,
>>> Ie in the src directory, as shown
>>> 
>>> <1.tiff>
>>> 
>>> Phil:-(
>>> 
>>> 
>>>> On 8 May 2018, at 18:53, Erik J. Thomas <erik@xxxxxxxxxx <mailto:erik@xxxxxxxxxx>> wrote:
>>>> 
>>>> Oops, I stand corrected. Assets.car is not a zip file. My bad.
>>>> 
>>>> But the icons the online tool built should be available to copy to your icons folder. Remember, they won't necessarily be the same names as the icons you provided to the tool.
>>>> 
>>>> Bottom line is you need the built icons in IPA root as duplicate of those in the Assets.car.
>>>> 
>>>> Erik
>>>> 
>>>> On May 8, 2018, at 10:26 AM, Erik J. Thomas <erik@xxxxxxxxxx <mailto:erik@xxxxxxxxxx>> wrote:
>>>> 
>>>> You need the icons that were added to your Assets.car file to also be in the package root of the IPA. You can unpack the .car (it's just a zip) and copy all those icon files into an "excluded" IntelliJ directory at the root of your project, like "icons" and then copy them to the package root by adding a directive:
>>>> 
>>>> command+;
>>>> select your module
>>>> select iOS tab
>>>> add to "Files and folders to package":
>>>> 
>>>> From: /Users/youraccount/project/icons
>>>> To: .
>>>> 
>>>> You should also copy the Assets.car file into the same icons directory so the directive above also copies the .car to the root of the IPA. And you never need to place icon files, splash screens, etc., into your project's src directory. Since you use directives to copy them to the root of the IPA during the build, just create a root folder "launchscreens" and exclude it in IntelliJ and just copy the contents of it to "." and you should be good to go.
>>>> 
>>>> Erik
>>>> 
>>>> On May 8, 2018, at 9:45 AM, npem <philip.medlam@xxxxxxxxx <mailto:philip.medlam@xxxxxxxxx>> wrote:
>>>> 
>>>> Hi,
>>>> I have a problem with the new iStore requirements
>>>> For an Asset.car file
>>>> 
>>>> I used the website at:
>>>> *http://applicationloader.net/appuploader/icontool.php <http://applicationloader.net/appuploader/icontool.php>
>>>> *
>>>> Which produced png’s and an Assets.car file
>>>> All of which I copied to the src directory
>>>> 
>>>> I then edited the -app.xml file to include, 
>>>> Within the <icon> section
>>>> 
>>>> *<image29x29>Icon-Small.png</image29x29>
>>>> <image40x40>Icon-Small-40.png</image40x40>
>>>> …… ….
>>>> …. ….
>>>> <image167x167>Icon-167.png</image167x167>
>>>> <image180x180>Icon-180.png</image180x180>*
>>>> 
>>>> I previously had entries for a few of these under:
>>>> 
>>>> But commented these out
>>>> 
>>>> 
>>>> I also 
>>>> *Project Structure -> Modules -> iOS
>>>> Added all the image files and the Assets.car file “to package”*
>>>> 
>>>> All seemed to work, but when I uploaded to the iStore I get:
>>>> *		ERROR ITMS-90032: "Invalid Image Path - No image found at the path
>>>> referenced under key 'CFBundleIcons': 'Icon-167.png'"
>>>> 		ERROR ITMS-90032: "Invalid Image Path - No image found at the path
>>>> referenced under key 'CFBundleIcons': 'Icon@xxxxxx'"*
>>>> Plus a another 5 lines for the different image Paths
>>>> 
>>>> 
>>>> 
>>>> *Anyone offer an example of how I would use
>>>> CFBundleIcons for 2 (as an example) icons 
>>>> And where to put them in the xml file*
>>>> 
>>>> Any help would be gratefully appreciated
>>>> Phil:-)
>>>> 
>>>> 
>>>> /I am using:
>>>> IntelliJ 2017
>>>> Flex 4.16.1
>>>> AIR29/
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Sent from: http://apache-flex-users.2333346.n4.nabble.com/ <http://apache-flex-users.2333346.n4.nabble.com/>
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>