iOS Code Generation Fails without Errors

Problem: iOS code generation may report success but no code is actually generated. Currently Sybase Unwired WorkSpace fails to report errors.

Solution: You can obtain information about the Sybase Unwired WorkSpace errors from the command line.

  1. Navigate to <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\bin.
  2. Type the following at the command line (this example uses TestSyncParams.xml):

    run codegen.bat -output . -oc -sqlite -client -mbs -md <TestSyncParams.xml>

    Where:
    • -oc is ObjectiveC integration. Required.
    • -sqlite is the database type. Required.
    • -client generates client-side code. Required.
    • -mbs generates code to support messaging-based synchronization. Required.
    • -md is used to generate metadata information for entity attributes and operations. Optional flag.
  3. Review the output for information. For example, this example output provides the information – "Member not found":
    com.sybase.modeling.templatej.runtime.adapter.impl.NoSuchMemberException: 
    																Member not found: hasSyncParameterFilterAttributesAndHasPersonalizationParameters
            at com.sybase.modeling.templatej.runtime.adapter.impl.BaseObjectAdapter.getAdapteeMember(BaseObjectAdapter.java:160)
            at com.sybase.modeling.templatej.runtime.adapter.impl.GenericObjectAdapter.getAdapteeMember(GenericObjectAdapter.java:230)
            at com.sybase.modeling.templatej.runtime.adapter.impl.BaseObjectAdapter.getMember(BaseObjectAdapter.java:81)
            at com.sybase.modeling.templatej.runtime.scope.impl.Scope.getMember(Scope.java:236)
    								...
    
  4. Use the information to solve the problem.
Related concepts
SQL_MAX_ROW_SIZE_EXCEEDED
There is no object query selected for the {control_name} on screen {screen_name} Error
Windows Mobile Code Generation Fails During Compilation
Related reference
Error When Running Generated 32-bit Windows Code on a 64-bit Machine
Extra Icon Appears on BlackBerry Device Application
Namespace Name Does Not Exist Error