cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

V2 SDK and space in product name [iOS]

V2 SDK and space in product name [iOS]

GHughes
Explorer | Level 3

We recently updated to the V2 SDK in our client's Swift project, importing ObjectiveDropboxOfficial manually. The app has a space in the name, for example, "Redac Ted".

 

When built from the command line, the archive fails with the error:

 

=== CLEAN TARGET ObjectiveDropboxOfficial iOS OF PROJECT ObjectiveDropboxOfficial WITH CONFIGURATION Release ===

Check dependencies
warning: Redac Ted is not a valid PRODUCT_NAME for use with framework targets enabling DEFINES_MODULE (name is not a valid C99 extended identifier)
warning: no umbrella header found for target 'ObjectiveDropboxOfficial iOS', module map will not be generated

** CLEAN FAILED **


The following build commands failed:
Check dependencies
(1 failure)
~/Redacted/private/var/folders/zq/xhxqg0ns1vs0cqq7g6wgf5cc0000gn/T
/private/var/folders/zq/xhxqg0ns1vs0cqq7g6wgf5cc0000gn/T
=== BUILD TARGET ObjectiveDropboxOfficial iOS OF PROJECT ObjectiveDropboxOfficial WITH CONFIGURATION Release ===

Check dependencies
warning: Redac Ted is not a valid PRODUCT_NAME for use with framework targets enabling DEFINES_MODULE (name is not a valid C99 extended identifier)
warning: no umbrella header found for target 'ObjectiveDropboxOfficial iOS', module map will not be generated

** ARCHIVE FAILED **

 

Removing the space from the product name (and test host for unit tests) does allow the build/archive to complete successfully, however changing the app's name is not something our client will likely agree to.

 

Is there something we missed when configuring the project/V2 SDK?

 

 

2 Replies 2

Re: V2 SDK and space in product name [iOS]

Greg-DB
Dropboxer
Thanks for the report. I'm not sure off hand if you'd need to do any special configuration in this case.

In case it helps though, it looks like there are some posts about this error here:

https://stackoverflow.com/questions/27613812/add-project-reference-to-swift-ios-xcode-project-and-de...
https://stackoverflow.com/questions/42369880/target-named-with-space

I can ask the team to look into this for you, but we'll need some more information:
- How are you installing the SDK?
- What command are you using to run the archive operation?

(By the way, we do also have a native Swift SDK you can use instead of using the Objective-C SDK in a Swift project: https://www.dropbox.com/developers/documentation/swift )

Re: V2 SDK and space in product name [iOS]

GHughes
Explorer | Level 3

Thanks for your reply.

 

The SDK is installed manually; ObjectiveDropboxOfficial.xcodeproj was dragged into the main project as a subproject, and the iOS framework was added to Linked Libraries and Frameworks.

 

The build command I was using was:

xcodebuild -project appname.xcodeproj -scheme appname -archivePath ~/Desktop/appname.xcarchive -configuration Release -xcconfig signing-assets/appname.xcconfig -sdk iphoneos10.2 clean archive

 

I seem to have resolved the error by adding the iOS version of ObjectiveDropboxOfficial.framework to the Embedded Binaries section under General. The installation instructions don't mention this.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    GHughes Explorer | Level 3
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?