Skip to content

Wrong Platform when build for iOS Simulator #4136

@alessandrodn

Description

@alessandrodn

When building for iOS Simulator using config/make, the generated library has platform IOS instead of IOSSIMULATOR.

What I do

  • Build libpoco with the following command
./configure \
    --config=iPhoneSimulator-clang-libc++ \
    --no-tests \
    --no-samples \
    --minimal \
    --static

make --jobs=4 POCO_TARGET_OSARCH=arm64 IPHONE_SDK_VERSION_MIN=13.0
  • At the end of the build, check the platform by running the command
otool -lv libPocoFoundation.a | grep -A5 LC_BUILD | more
      cmd LC_BUILD_VERSION
  cmdsize 24
 platform IOS
    minos 13.0
      sdk 16.4
   ntools 0

What I expect

The generated library should have the platform IOSSIMULATOR.

The issue is that the configuration files for the iPhoneSimulator platform use the wrong parameter: it uses -miphoneos-version-min=$(IPHONE_SDK_VERSION_MIN) while it should be using miphonesimulator-version-min=$(IPHONE_SDK_VERSION_MIN).

I'll submit a patch to fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions