Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8225237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:21:02+00:00 2026-06-07T15:21:02+00:00

I am implementing an app which has a dependency to a command line tool.

  • 0

I am implementing an app which has a dependency to a command line tool.
This is because there are some presets to do.
The command line tool is responsible to create a sqlite file with all initial information needed by the app (clearly speaking: its just a tool to add some initial data to the app).

Now the problem is, that during debugging everything works fine but if I’ll do a release build, some errors occur.
The first error was

target specifies product type 'com.apple.product-type.tool', but there's no such
product type for the 'iphoneos' platform"

This was because my main app had the command line tool as a target dependency.
I solved this by removing the target dependency and added the build to a run script phase:

#Build the initial setup target
xcodebuild -target InitialCoreDataSetup -sdk macosx -configuration $CONFIGURATION

#Run initializing data target to get current sqlite file
cd "$CONFIGURATION_BUILD_DIR"
cd ..
cd "$CONFIGURATION"
current_dir=$(pwd)
./InitialCoreDataSetup "$current_dir" "$SRCROOT" "$CONFIGURATION"

Now the problem is, that I get the following error:

=== BUILD NATIVE TARGET InitialCoreDataSetup OF PROJECT XY WITH CONFIGURATION AdHoc     ===
Check dependencies
SDK Configuration Error: no wrapper for product type @

I have absolutely no idea how to fix this.
Any suggestions?

How do you provide your app with an initial sqlite file?

Thanks in advance for any help!
EDIT
At the moment the build phases of my app target are the following:
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:21:04+00:00Added an answer on June 7, 2026 at 3:21 pm

    BTW: I finally got that working by the following line:

    #Build the initial setup target
    export DYLD_FRAMEWORK_PATH="$SYMROOT/Debug"
    /usr/bin/env -i xcodebuild -target InitialCoreDataSetup -sdk "macosx" -configuration Debug OBJROOT="$SYMROOT/Debug" SYMROOT="$SYMROOT"
    echo "$SYMROOT/Debug"
    #Run initializing data target to get current sqlite file
    cd "$SYMROOT/Debug"
    ./InitialCoreDataSetup "$SYMROOT/Debug" "$SRCROOT" "$CONFIGURATION"
    

    The trick is to start the initialCoreDataSetup always in DEBUG mode

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an app in which i am implementing Achart engine line chart.
I'm implementing an app that has a MapField , which I am extending. I'm
I'm implementing a simple app with storyboard which has a button from a normal
currently, I`m implementing a map App with Mono4Droid and there I`m using a WebView
I am implementing an application with django, which has a model with a FileField:
I am implementing a web app using symfony 2. It has a main page
Implementing Ajax requests in my rails 3 app has been one of the most
I am implementing a locking system in my app which protects my app against
I have an iPad app, which has a requirement for iAds. But in Library
I've been developing my first Java EE app, which has a number of JPA

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.