ProudNet.Eng
WebsiteProud ConsoleLanguage
  • 🌐ProudNet
    • ProudNet Introduction
    • Download and Install
      • How to verify your ProudNet license
      • AMI
    • Project Settings
      • C++
      • C#
      • Mac Xcode
      • Linux
      • Unity3D
        • iOS Build
      • Unreal Engine 4
      • Running the PIDL Compiler
    • Using ProudNet
      • Server and Client
        • Utilization of Server
        • Utilization of Client
      • RMI
        • Utilization of RMI
      • PIDL
        • Utilization of PIDL
      • Event handling
      • Communication messages
      • P2P Communication
        • Using P2P communication
    • Utilization of ProudNet
      • How to use
      • Tips for performance
    • Using DB in ProudNet
      • DB Cache System ver.2
        • DB Cache Theory and Understanding
        • Install DB Cache and Set Up Network
        • DB Cache Server and Client
        • DB Cache usage and application
          • Utilization of DB Cache
      • ADO API
      • ODBC API
    • ProudNet Utility
  • ProudNet Note
    • Technical Notes
      • Main Loop
      • Setting up a server firewall
      • Encryption and decryption
      • What to do in case of an error
      • List of error messages
      • Synchronizing Character Position
      • Client-Server Communication
      • MiniDump (Error Dump System)
      • [Version 1.6] Server-to-Server LAN Communicator
    • Glossary
    • Sample examples
  • 🌐Proud Service
    • Guide for Console
    • ProudChat
      • Download SDK
        • C++
        • C#
        • Unity3D
        • Unreal Engine 4
      • Features in Console
Powered by GitBook
On this page
  • 1. Preparation Work
  • 2. Resolving errors
  • - Link error when adding ProudNet Library
  • - Link error with duplicate symbol when using the -all_load -Objc option
  • Back
  1. ProudNet
  2. Project Settings

Mac Xcode

Last updated 1 year ago

ProudNet iOS version

  • Development languages: C/C++

  • Library and Sample: XCode8 Version


1. Preparation Work

Below shows how to include ProudNet Library in your XCode Project.

1-1. Copy the files below to your Mac

  • ProudNet\Sample\Chat\ChatCommon

  • ProudNet\Sample\Chat\ChatIOS

  • ProudNet\lib\IOS\LLVM(or GNU)

  • ProudNetProudNet\utill\PIDL.exe

1-2. Install Mono for Mac.

Reference

1-3. open ChatIOS.xcodeproj in Sample\ChatIOS

1-4. Add Include.xcodeproj to your project.

1-5. Modify the contents of the Run Script for BuildPhases.

1-6. Modify Debug, Relese in Build Settings > Other Linker Flags.

Change to the path where the actual libProudNetClient.a is located, and choose between LLVM and GNU. If you have a directory structure like the one above, it should look like the screenshot.

1-7. To check, after building ChatIOS, you can run ChatServer on Windows to check for ChatIOS connectivity.

Notes on using ProudNet in Xcode ※ Add libiconv.dylib, a library built in Xcode. ※ It is not available in m-files, so you need to change the extension to mm-files. ※ Add #include <new> to all mm files. In Xcode, STLs cannot be declared in header files.

2. Resolving errors

- Link error when adding ProudNet Library

If you experience a link error when adding the ProudNet Library, add the following option.

- Link error with duplicate symbol when using the -all_load -Objc option

If COCOs2d-x, a link error related to duplicate symbol, occurs when using the -all_load -Objc option, use -force_load instead of -all_load -Objc in Other Linker Flags.

To match the path, adjust the path to PIDL.exe. If the directory structure is as above, please modify it as follows. mono ../../util/PIDL.exe ../ChatCommon/* -outdir ./ChatIOS/


🌐
Install Mono for Mac
⬅️
Copied files and paths
Example of using the -force_load option
Back