Overview
Despia’s Xcode Export feature allows you to download your entire iOS project, including all source files and dependencies. This gives advanced developers full access to the native codebase for customization beyond the standard Despia platform capabilities.What You Can Do With Manual Export
- Make low-level modifications to the native code
- Integrate additional third-party libraries
- Configure custom build settings
- Deploy directly through Xcode
- Implement advanced native iOS features
Who Should Use This Feature
Recommended for:- Experienced iOS developers comfortable with Xcode and Swift
- Projects requiring deep native code customization
- Teams with dedicated iOS development resources
- Developers unfamiliar with iOS development or Xcode
- Projects that can be handled with Despia’s Auto Publish feature
- Teams wanting to maintain automatic over-the-air updates
Note: This approach is recommended for experienced iOS developers who are comfortable working with Xcode and Swift. If you’re not familiar with iOS development, we recommend using the Auto Publish option instead.
Export Process
Step 1: Access the Export Option
- Log in to your Despia dashboard
- Open your project
- Click on the Export Project button in the top navigation bar
Step 2: Select Swift Project
In the export modal that appears:- Click on the Swift Project option
- You’ll see a preview of some of the native Swift code that will be included in your export
- Review the folder structure displayed in the preview panel
Step 3: Export Source Code
- Click the Export Source Code + Dependencies button at the bottom of the modal
- Your browser will download a ZIP file containing your complete Xcode project
- The download may take a few moments depending on your project size and connection speed
- Complete Swift source code
- All project dependencies
- Asset catalogs and resources
- Build configurations
- Xcode workspace file
Working with the Exported Project
Opening in Xcode
Follow these steps to open your exported project:- Extract the downloaded ZIP file to a location on your Mac
- **Double-click the **
.xcworkspacefile (not the .xcodeproj file) - Xcode will open your project
- Wait for Xcode to complete indexing the project before building
Important: Always open the.xcworkspacefile, not the.xcodeprojfile, to ensure all dependencies load correctly.
Understanding the Project Structure
The exported project follows standard iOS project architecture and contains all the necessary components to build and deploy your application. Once opened in Xcode, you’ll have access to:- Complete source code
- Resources and asset catalogs
- Configuration files
- Dependencies and frameworks
- Build settings
Making Modifications
Development Workflow
When modifying the exported project:- Make your desired changes to the code or configuration
- Test thoroughly on simulators and physical devices if available
- Build and archive your application using Xcode’s built-in tools
- Submit to the App Store following the standard submission process
Important Considerations
Key points to remember:- Once you export and modify the project outside of Despia, those changes won’t automatically sync back to your Despia project
- Consider using version control (like Git) to track your changes
- The exported project contains all the necessary dependencies and configurations to build a complete iOS application
Testing Your Changes
Recommended testing approach:| Test Type | Description |
|---|---|
| Simulator Testing | Test basic functionality on iOS Simulator |
| Device Testing | Test on physical devices for accurate performance |
| Multiple iOS Versions | Verify compatibility across supported iOS versions |
| Different Device Sizes | Test on various iPhone and iPad screen sizes |
Publishing Your Modified App
Preparation Steps
After making your modifications:- In Xcode, select your target and ensure signing is configured correctly
- Verify your Bundle Identifier matches your App Store Connect entry
- Check that all certificates and provisioning profiles are valid
- Update version and build numbers as needed
Creating an Archive
- Select Product > Archive to create an archive of your application
- Wait for the archive process to complete
- The Xcode Organizer window will open automatically
Uploading to App Store Connect
- Use the Xcode Organizer to upload your build to App Store Connect
- Select your archive from the list
- Click Distribute App
- Choose App Store Connect as the distribution method
- Follow the prompts to upload your build
Completing Submission
Complete the submission process in App Store Connect:- Log in to App Store Connect
- Navigate to your app
- Wait for your build to finish processing (typically 10-30 minutes)
- Select the build for your app version
- Complete all required metadata
- Submit for review
Troubleshooting
Common Issues and Solutions
Build Errors After Export
Issue: Project won’t build after opening in Xcode Solutions:- Clean build folder: Product > Clean Build Folder
- Delete derived data and rebuild
- Verify all dependencies are properly linked
- Check that you’re opening the
.xcworkspacefile
Signing Issues
Issue: Code signing errors prevent archiving Solutions:- Verify that your Apple Developer account is correctly configured in Xcode
- Check Signing & Capabilities tab for correct team selection
- Ensure provisioning profiles are up to date
- Try automatic signing if manual signing fails
Missing Dependencies
Issue: Build fails due to missing libraries Solutions:- Ensure all dependencies are properly linked
- Check that package dependencies resolved correctly
- Verify internet connection during initial build
- Try cleaning and rebuilding the project
Getting Help
When to Contact Support
If you encounter any issues with the exported project:- Check that you have the latest version of Xcode installed
- Ensure all dependencies are properly linked
- Verify that your Apple Developer account is correctly configured in Xcode
Support Resources
For additional assistance:| Support Channel | Contact Information | Response Time |
|---|---|---|
| [email protected] | 24-48 hours | |
| Dashboard Chat | Available in your Despia dashboard | During business hours |
Support Scope
What we can help with:- Export process issues
- Understanding the exported project structure
- General questions about Despia features
- Troubleshooting export-related problems
- Extensive custom development assistance
- Advanced Xcode troubleshooting unrelated to Despia
- Third-party library integration support
- General iOS development tutoring
We’re happy to help with any questions about the export process, though extensive custom development assistance may be outside our support scope.
Alternative: Auto Publish
Remember that this option is primarily for advanced developers who need direct access to the native code. For a simpler publishing experience, consider using our Auto Publish feature instead.Benefits of Auto Publish
| Feature | Auto Publish | Manual Export |
|---|---|---|
| Ease of Use | Very simple | Requires Xcode knowledge |
| Build Process | Automatic | Manual in Xcode |
| Updates | Over-the-air updates | Manual rebuilds required |
| Customization | Limited to Despia features | Full native code access |
| Maintenance | Handled by Despia | Developer responsibility |
When to Choose Auto Publish
Auto Publish is the better choice when:- You don’t need custom native code modifications
- You want simplified deployment and maintenance
- You prefer automatic over-the-air updates
- Your team lacks iOS development expertise
Best Practices
Version Control
After exporting your project:- Initialize a Git repository in your project folder
- Create an initial commit with the exported code
- Track all changes with meaningful commit messages
- Use GitHub, GitLab, or Bitbucket for backup and collaboration
Documentation
Maintain documentation for:- Custom modifications made to the exported code
- Reasons for specific implementation choices
- Build and deployment procedures
- Known issues and workarounds
Regular Updates
- Keep Xcode updated to the latest version
- Test your app on new iOS versions when released
- Periodically re-export from Despia if you need updated base code
- Monitor for security updates and apply promptly
Next Steps
After successfully exporting and working with your Xcode project:- Test thoroughly before submitting to the App Store
- Submit for TestFlight testing if needed
- Complete App Store submission when ready
- Monitor reviews and ratings after launch
- Plan for maintenance and future updates