Specify appropriate creation parameters, connection parameters, synchronization parameters, protocol options, method calls, and deployment files to ensure that your UltraLite application runs successfully on Mac computers, iPhones or iPads.
Prérequis
There are no prerequisites for this task.
For Mac OS X, add the following runtime library files to your Xcode project:
/Applications/SQLAnywhere16/System/ultralite/macosx/x86_64/libulrt.a
/Applications/SQLAnywhere16/System/ultralite/macosx/x86_64/libulbase.a
For iOS, to link to the UltraLite runtime library, either:
Add install-dir/ultralite/iphone/libulrt.a to the Frameworks group in Xcode.
OR
Add the following to the Other Linker Flags (OTHER_LDFLAGS) build setting:
-L$(SQLANY_ROOT)/ultralite/iphone -lulrt |
where SQLANY_ROOT is a custom build setting set to the SQL Anywhere installation directory.
UltraLite runtimes must be built after installation. Follow the instructions provided in install-dir/ultralite/iphone/readme.txt.
Add the appropriate frameworks to your Xcode project:
For Mac OS X, CoreFoundation.framework, CoreServices.framework, and Security.framework.
For iOS, CFNetwork.framework and Security.framework.
Specify the following parameters:
When using obfuscation, set the creation parameter obfuscate=1 while creating the database.
When using AES encryption, set the connection parameter DBKEY=encryption-key while creating or connecting to the database.
Set the appropriate parameter settings when using synchronization in your UltraLite application:
Synchronization type | Parameter settings |
---|---|
TCP/IP |
Set the Stream synchronization parameter to tcpip. |
HTTP |
Set the Stream synchronization parameter to http. |
RSA TLS |
Set the Stream synchronization parameter to tls. |
RSA HTTPS |
Set the Stream synchronization parameter to https. |
When using RSA E2EE encryption, set the protocol option e2ee_public_key=key-file.
When using ZLIB compression, set the protocol option compression=zlib.
When using AES encryption, call the ULDatabaseManager.EnableAesDBEncryption method.
Ensure that the following methods are called for the synchronization type used in your UltraLite application:
Synchronization type | Parameter settings |
---|---|
TCP/IP |
Call the EnableTcpipSynchronization method. |
HTTP |
Call the EnableHttpSynchronization method. |
RSA TLS |
Call the EnableTlsSynchronization and EnableRsaSyncEncryption methods. |
RSA HTTPS |
Call the EnableHttpsSynchronization and EnableRsaSyncEncryption methods. |
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |