Run script failed when compile for device

Hello,
I run a perl script at build time, in order to insert svn revision of my code into info.plist (CFBundleVersion)
It is working except when I build for the device.
I got a codesign error.
myApp.app: object file format invalid or unsuitable
Do you have an idea ?
Thanks a lot.
Thierry

Yes.
OK, I know it's not supposedly a 'supported' development platform for iPhone but it's been doing me just fine so far.
I managed to figure out (through endless googling) that there is no NSPoint or NSRect on iPhone (or the associated methods), you have to use CGRect and CGPoint instead (which apparently are identical internally).
http://www.iphonexe.com/blog/?p=3

Similar Messages

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • Error when compiling for IOS

    When compiling for IOS in Standard mode an error ocurred:
    Error occurred while packaging the application:
    Exception in thread "main" com.adobe.air.ipa.ProcessError: Assembler failed
              at com.adobe.air.ipa.AOTCompiler.launchProcess(AOTCompiler.java:263)
              at com.adobe.air.ipa.AOTCompiler.compileBitcode(AOTCompiler.java:935)
              at com.adobe.air.ipa.AOTCompiler.trimAndCompileBitcode(AOTCompiler.java: 763)
              at com.adobe.air.ipa.ASMGenerator.main(ASMGenerator.java:72)
    Compilation failed while executing : ADT
    Flex 4.6
    Windows 7
    Any idea?

    Sinious thanks for your answer.
    I tried compiling from adt and it worked using this command line script.
    @set java_cmd="C:\Program Files\Common Files\Adobe\Adobe Flash CC\jre\bin\java.exe"
    @set java_param=-Xmx8192m -jar
    @set adt_cmd="C:\Program Files\Adobe\Adobe Flash CC\AIR4.0\lib\adt.jar"
    @set target=ipa-test
    @set cert=samples.p12
    @set cert_pass=12345
    @set provisioning=samples.mobileprovision
    @set build_file=Testing.ipa
    @set desc_files=Testing-app.xml
    @set files=Testing.swf assets externalSWF
    %java_cmd% %java_param% %adt_cmd% -package -target %target% -storetype pkcs12 -keystore %cert% -storepass %cert_pass%  -provisioning-profile %provisioning% %build_file% %desc_files% %files%
    pause
    Still there is now a different problem.
    When trying to compile more than a certain number of external swfs (eg. 350) then the process never ends. The java.exe  process consumes all of my memory and it is just stuck there for hours( I've waited for it to compile for nearly 10 hours before I killed the java.exe process). When I randomly remove some swfs then everything goes fine and the process finishes after nearly half an hour or so.
    The pc i'm using has an i7 processor with 16gb of ram and the java process consumes it all even though i've set a limit using the -Xmx8192m command.
    Is there a problem with the xmx command?
    Do i need even more ram to compile a larger number of swfs.
    Is there a way to monitor the java process in order to catch any errors that occur or maybe use any different java params to control ram usage limits?
    Thank you for your help.

  • [solved]script fails when changing profile through powerdevil.

    i use ondemand governor and i want to change up_threshold value.
    Whenever i change profile through powerdevil up_threshold gets its default vaule of 80.
    what i did was to create a script named threshold containing the lines:
    #!/bin/bash
    sudo sh -c 'echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold'
    i have also set through /etc/sudoers that this script is passwordless for my user.
    if i run the script, it successfully changes the value. It also runs successfully if i put it in startup.
    My problem is that it fails to run when i choose it to run when a profile loads through powerdevil. I am refering to the feature shown below :
    at first i thought that this function has a problem. so i chose to run kate, and when i changed profile, kate started immediately. So i guess that there is a problem with my script.
    Any ideas?
    Last edited by mechmg93 (2009-10-20 20:14:30)

    I hope someone reads this thread also its already marked as solved...
    Anyway, i would like to use CPU frequency scaling, but in the powermanagement settings,
    i cant shoose anything for frequency scaling.
    What do i have to do to be able to set "ondemand" or "always lowest frequency"?
    Wich daemons and/or modules do i have to activate to change the frequency policy?
    Would be very nice if someone could help me.

  • Generated Script fails when attempting to drop Foreign Key Constraint

    I made some changes to my database.  I used the generate script process to generate a drop and create script to these tables.  The generated script first ran Alter Table Drop Constraints to drop the Foreign Key constraints and then did Drop tables
    and then did create table to construct the script with the proper changes.
    However, when we attempted to run the script, all of the Drop constraint statements failed reporting that there was no such constraint.  Then the drop table scripts failed because of the existence of the very foreign key constraints  that SQL Server
    had just stated did not exist.
    BOL states that the statement "DROP { [ CONSTRAINT ] constraint_name | COLUMN column_name } " is  "Used in a CHECK, FOREIGN KEY, UNIQUE, or PRIMARY KEY constraint."  So why couldn't I drop those specified Foreign
    Key constraints in a script generated by SQL Server itself.
    Edward R. Joell MCSD MCDBA

    Are you sure there are no Constraints on other tables which are causing your issue?
    If a foreign key from table abc refences table def it will cause the drop to fail.
    If your script is already attempting to drop such constraints, have you checked that they are dropping from the correct table (and not the table that would be the target of the drop)?
    I discovered two things yesterday and one thing today about generated scripts.
    When you generated a script to drop and create a set of tables and you mark it to include foreign keys, the generated script will first create a set a scripts to drop the foreign keys , then will create a set of statements for each table that will,
    first, again drop the same foreign keys that it did earlier, then drop the table.  If there is no "if exists" statement for each statement, the drop constraint will fail.
    The script generated by the generate scripts wizard, even when you set the Drop and Create option in the advanced tab, unlike the scripts generated when you right click a table and select Drop and Create from the context menu, does not by default create
    an "If Exists" statement before the attempt to drop anything.
    You can make the generate Scripts wizard generate an "if exists" statement by changing the "Include if NOT EXISTS" option on the advanced tab to true. However, while the script generator will find all of the foreign keys that show that
    table as the parent_id, it will not show the FK constraints on tables which are not being dropped and created.  Nor can you find them by querying the sys.foreign_keys view using the standard type of Foreign Key "If Exists" statement because
    it would do a query like
    SELECT *
    FROM sys.foreign_keys
    WHERE object_id = OBJECT_ID(N'[dbo].[FK_prc_ContractSubLines_prc_PRSubLines]')
    AND parent_object_id = OBJECT_ID(N'[dbo].[prc_ContractSubLines]')
    And the script generator does not care even if you show an option like "Generate Scripts For Dependent Objects", it will not generate a drop script for the foreign constraints on other tables that reference your table.  I have not even found
    a way to get back the results of a query on the sys.foreign_keys view that will show those keys that reference your table. The only thing I been able to do is to open the table in design and check out the list of relationships in your table and see open each
    relationship and see which table is the "foreign key table" rather than the primary key table. This will make writing drop and create scripts very very long and tedious. As you would have to  create addional Alter tables scripts to do a drop
    and create foreign keys on each table referencing yours and manually place them into your scripts at correct locations. This is almost as bad as the Oracle SQL Developer's generate script results which (at least in 2010) so screws up the order of the generated
    script that it is trying to create foreign keys on tables it has not created yet.
    So Patrick I see that you thought about the foreign keys on other tables.  I wish I had read your post before spending the morning troubleshooting this issue based on this morning's script that ran and crashed embarrassingly. 
    I would like to know if someone has a query to reveal all of the foreign keys that reference your table from another table using the sys views.  As it is I have to open each table in design to get a list of FKs that reference it.
    Edward R. Joell MCSD MCDBA

  • Desktop Manager freezes when looking for device app. updates

    I NEED to use the Desktop Manager because I want to remove apps from my 8130 that I believe are bogging my phone down and causing it to act wierd (like Yahoo Messenger!) So I connect my phone, click on DM. Instantly a gray box comes up saying "Searching for device application updates. Please wait." It runs and runs and never does anything. I allowed it to go for 20 minutes one time just to see if I was just being too impatient, but still nothing. I click "Cancel" and DM goes into "Not Responding".
    I have repeated this cycle several times... decided maybe it was the software (v4.7) and went to do an uninstall. It goes to compute system space and comes back with a 1606 error, something to do with "network something or other". So I cannot even UNINSTALL it!
    What gives? I have noticed several others says they have had problems with 4.7 crashing their computer, which hasn't happened to me yet... but has anyone else had what I just described happened to them. And if so, what did you do to fix it?
    Nick

    Possibly...but if the issues wind up being intermingled (as they so often do), then having them separated becomes confusing. The way these forums work is that there are many of us here volunteering in our spare time to help out. And that means needing to have clean hand-offs of information so that anyone can pick up from another (since, for instance, I need to dash out right about now...someone else will need to pick up). If one post here only has a subset of the total story, someone picking it up here will have no way to realize that other things were tried in another thread. The key for each OP is to keep it to one thread unless and until it can be determined that things should be split -- and then we can have the mods do that if we need it. For your issues, while it's so new and in the initial diagnosis stages, keeping it in one place would be cleaner.
    BTW -- all of that is merely IMHO. I have no "power" over what anyone here does. I'm just a volunteer.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Classes not found when compiling for jdk1.3.1_01 on red hat 7.2

    I have just installed jdk1.3.1_01 (rpm) on linux red hat 7.2
    I have written a small program to test, however, the compiler isn't able to locate the classes.
    import javax.swing.*;
    public class JTest {
    public static void main( String args[] )
    JOptionPane.showMessageDialog( null, "Hello", "Test Dialog",
    JOptionPane.INFORMATION_MESSAGE );
    System.exit( 0 );
    When compiled it generates the error:
    JTest.java:10: error:Variable "JOptionPane" is not defined in current context
    I have the path and classpath set to what I think are the correct directory paths.
    Any advice would be much appreciated!
    Thanks..

    Sorry, typo in the classpath... but now when I compile
    I get error: "segmentation fault" then nothing else.
    This also happens when I execute a precompiled app (eg
    "java OldApp").This is to do with GLIBC-2.2, I believe. :/ (Pointed out by Niteen. :)
    "ulimit -s 2048" should fix this. Adding this line to /etc/profile or your ~/.profile shall automatically run this command every log in.
    Bhav

  • ERROR:HDLParsers:3370 Compile Error when compiling for NI-5640R

    I'm trying to get a FFT Core working inside the NI-5640R FPGA.  In my latest debugging step, I have received the following error when compiling:
    Compiling vhdl file "C:/NIFPGA82/srvrTmp/LOCALH~1/IFBC3E~1/bushold.vhd" in Library work.
    Entity <bushold> compiled.
    ERROR:HDLParsers:3370 - "C:/NIFPGA82/srvrTmp/LOCALH~1/IFBC3E~1/bushold.vhd" Line 142. Value 0 is not included in the range, 1 to 2147483647, of kConfiguration_ClkMaxWidth.
    ERROR:HDLParsers:3370 - "C:/NIFPGA82/srvrTmp/LOCALH~1/IFBC3E~1/bushold.vhd" Line 143. Value 0 is not included in the range, 1 to 2147483647, of kConfiguration_ClkCounterWidth.
    Has anybody seen this before?  I am including my FPGA VI that is causing this error (FFT (FPGA).vi).  I am also including my previous step in debugging the FFT that worked (FFTworking (FPGA).vi).
    Attachments:
    FFT (FPGA).vi ‏125 KB
    FFTworking (FPGA).vi ‏119 KB

    Hi,
    The main cause of this error message is the large array size. You configured a 16-bit fixed-size array with 4096 element for a total array size of 65536 (16 * 4096). Array uses a lot of FPGA resource and the general recommendation to limit the use and size of array as much as possible on the FPGA VI. This VI will certainly overmap the FPGA resource because of the large array size.
    Although this error message is not directly related to the array size, it has however been reported to R&D (#4G3COBJ0) for further investigation. A possible workaround would be to reduce the size of the array or use DMA FIFO to pass the data to the host.
    Thanks for the feedback!
    Tunde A.
    LabVIEW FPGA

  • PLW-06015 when compilling for debug

    Hi,
    I have the error message: "Warning(1): PLW-06015: parameter PLSQL_DEBUG is deprecated; use PLSQL_OPTIMIZE_LEVEL = 1"
    each time I compile for debug.
    The Oracle database parameters are
    plsql_warnings ENABLE:ALL
    plsql_debug FALSE
    plsql_optimize_level 2
    So Why do I have this message?
    Seb

    Yes,
    I can modify everything under Database - PL/SQL Compiler.
    Optimization Level is already set to 2.
    Here are the other preferences:
    ALL: ENABLE
    INFORMATIONAL: not set
    SEVERE: not set
    PERFORMANCE: not set
    PLScope identifiers: All
    The user for the schema has the DEBUG CONNECT SESSION.
    When I change Optimization level to 1 and compile or compile for debug, I always receive the warning message.
    When I change Optimization level to 2, I always receive the warning message only when I compile for debug,
    In case of, the SQL developer version I use is Version 2.1.1.64 Build MAIN-64.39.
    Seb

  • Pls help my bb 9380 is showing initialization failed ,when looking for network

    pls i use a bb 9380 curve 5,just recently my fone trips off and on,but still works perfectly fine,but yesterday it refuses to
    to load my sim,i just shows initilization failed with an S0S service,i was told by the technicians here,that its only RIM that can rectify it for me,pls help.

    Hi and Welcome to the Community!
    Well, sadly, those technicians may have misdirected you. This site is a user-to-user community of volunteers...it is not a channel for any formal communications with, support from, nor escalation to RIM. RIM provides zero front-line support to any end-users...such is actually contractually prohibited.
    The technicians, if they are authorized BB support folks, have channels for escalating things to RIM that need to be so. I recommend you go back to them and have them do so.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Customized chrome works when running, but not when compiling ?

    Dear webmates :
    I have customized my chrome in Flex : it does not show the window container  (transparent) , etc... and works great when I run it... however, when I compile it in order to have the standalone file... it simply works displaying again the window ! what do I have to do ? thanks in advance...

    Hello,
    When you built your installer, did you include all of the dynamically called VIs?  The application builder does not know about dynamically called VIs unless you specifically tell it about them (which of course makes sense, as they are dynamic).  Other potential issues might be the change in behavior of the Current VI's Path constant, or a lack of other dynamically called objects such as dlls or drivers.  Make sure that the dynamically called VIs have been properly installed on your target computer in the desired paths.  If that doesn't solve the problem then make sure that your application has good error handling capabilities (i.e. handles all error wires and eventually passes them to an error handler) so that you can use the error to determine which files are missing or in the wrong location.
    Regards,
    Ryan K.

  • Script photoshop to output for devices of different screen sizes

    Does anyone know of a script that will output Photoshop images at difference screen sizes for various devices?

    Image Processor Pro can save various sized documents at the same time.
    http://russellbrown.com/scripts.html

  • Run Script Once through Group for All users

    Hello Everyone,
    We have 4 forests with one domain each having forest trusts. I want to run a script only once on all the windows 7 machines in all the domains.
    I have created the script and saved it in the .bat. how can i go ahead and do this.
    Need your help.
    Thanks in Advance

    Hello Everyone,
    We have 4 forests with one domain each having forest trusts. I want to run a script only once on all the windows 7 machines in all the domains.
    You need to apply your script 4 times since you have 4 domains. Just use WMI filters to apply the GPO on Windows 7 machines only. 
    Filtering Group Policy to Windows 7 Computers
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • I'm attempting to transfer files, address book, etc from an external hard drive to my new Mac-mini using migration assistant.  The external drive is showing up on my desktop but Migration Assistant is not seeing the drive when searching for devices

    I'm attempting to migrate files, address book, maile, etc to my new Mac Mini using an external hard drive and Migration assistant.  I followed the instructions on using Migration Assistant to do this but Migration Assistant is not seeing the external drive, which is displayed on my desktop

    I've been chasing this problem all afternoon. I had to reformat my internal drive on my MBP and reinstall Mountain Lion   Start up assistant wouldn't see my extrnal drive with the Time Machine files on it.  After many tries, I skipped the restore there and let the system boot.  I could see my external drive from Finder and the files looked OK.  I was told to use Migration Assistant and it had the same problem.
    I saw a hint on one of these posts that the icon that you see and is label Macintosh HD is actually your backup disk and it is telling you that it has a copy of your internal Macintosh HD.  I went ahead and told it to continue and it started to restore my apps, settings, and documents.  It's been going for a couple of hours, and is close to being done.  I expect to see my old system restored when it is finished.
    Wish that Apple would put some type of note that it is seeing the backup. That is most confusing and seems to be a problem for lots of users.
    It's been a month or so since your post  Did your get it to work?

  • Problem when compiling for IOS

    Hello to all guys, before today i compiled my little app for ios easely but from this morning i'm having this error using AIR 3.8:
    however i can install my app on my iphone5 with no problems but i'm scared for this message
    p.s. before using AIR 3.8(version 3.7) i had this problem and another like PIE error but with AIR 3.8 the PIE error disappeared

    up

Maybe you are looking for