C++
How to Build and Run C++ Samples
General Samples
Under the
samples
directory, there are folders with the structure"Sample Name\Platform Name"
. Open the.sln
file in each folder using Visual Studio.Specify the command arguments in
Project > Properties > Debugging > Command Arguments
.Press F5 to build and run. The execution status will be displayed in the output window.
To run multiple clients, execute them as separate processes via Windows Terminal (Command Prompt) or similar.
Building Samples for iOS Simulator
In Xcode, go to
Product
>Destination
>Destination Architectures
and ensureShow Rosetta Destinations
is checked.Click the run destination in the top bar and select the Rosetta simulator.
Open
Build Settings
>Search Paths
.Adjust the search path order so that
../../../platforms/ios/iOS-Simulator/lib_static
is prioritized.
Running Android Samples
Right-click on the project in Visual Studio and open
Properties
.Navigate to
Debugging
.Set the launch arguments in
Launch Flags
. Specify the arguments with the--es
option (intent arguments).e.g.
最終更新