Before uploading an application to the App Store, We need to compress the compiled binary files and resource files into a compressed package. The compression format is zip.
On the homepage, find the compilation location, which is very important and difficult to find. We can look at the compilation log and find the create universal binary helloworld... And then expand the content as follows:
Create universal binary/users/tonyguan/library/developer/xcode/deriveddata/helloworld-example/build/products/release-iphoneos/helloworld. APP/helloworld normal "armv7 armv7s"
Cd "/users/tonyguan/desktop/19.1.4 helloworld"
Setenv path "/applications/xcode. APP/contents/developer/platforms/iphoneos. platform/developer/usr/bin:/applications/xcode. APP/contents/developer/usr/bin:/usr/sbin:/sbin"
Lipo-create/users/tonyguan/library/developer/xcode/deriveddata/helloworld-fzvtlfsmygaqjleczypphenzabef/build/intermediates/helloworld. build/release-iphoneos/helloworld. build/objects-normal/armv7/helloworld/users/tonyguan/library/developer/xcode/deriveddata/helloworld-fzvtlfsmygaqjleczypphenzabef/build/intermediates/helloworld. build/release-iphoneos/helloworld. build/objects-normal/armv7s/helloworld-output/users/tonyguan/library/developer/xcode/deriveddata/helloworld-plugin/build/products/release-iphoneos/helloworld. APP/helloworld
After the last log-output is the location after the application is compiled, "/users/tonyguan/library /... /Products/release-iphoneos/"is the directory generated after compilation, helloworld. app is a package file, and helloworld is a binary file.
You can right-click the package file helloworld. app and choose "show Package content" from the shortcut menu. The helloworld file is the binary file of our application. Others are resource files, including image files, attribute list files, NIB files, and storyboardc files. Nib files are compiled XIB files, and storyboardc files are compiled storyboards files.
Pack the helloworld.apppackage file into helloworld.zip. Right-click helloworld. in the app package file pop-up menu, select the compressed folder helloworldzip file, which will be generated in the current directory. Please save the file. We will introduce it in the next section and use it when uploading the application.