4 Replies
      Latest reply on Apr 16, 2019 9:18 PM by pawelzips
      FCR Level 1 Level 1 (0 points)

        I have a current Objective-C Application on the App Store. I recently incorporated a Swift view controller and Swift data model into the project, and I use the following import:

        #import "MyApplication-Swift.h"

         

        The project compiles and runs properly in the simulator and also when installed on a test device. However, when I try to archive the project for submission, It fails with a Preprosessor issue: 'MyApplication-Swift.h' file not found.

         

        I checked for the header file and found these:

        /Debug-iphoneos/MyApplication.build/DerivedSources/MyApplication-Swift.h

        /Debug-iphoneos/MyApplication.build/Objects-normal/arm64/MyApplication-Swift.h

        /Debug-iphoneos/MyApplication.build/Objects-normal/armv7/MyApplication-Swift.h

         

        Any ideas why the project builds and runs locally [in the simulator and on a device] but will not archive.