简体   繁体   中英

Error while Publishing the App to the Appstore

I have Appcelerator project in which I have included Notification Service Extention to read the Rich notification with the image. The code for the Extension is written in the swift. The problem is that when I try to publish the build to App Store I get below error.

Invalid Bundle. The bundle at '.app/PlugIns/testapp.appex' contains disallowed file 'Frameworks'.

Below are the solution which I tried and corresponding results.

  • For the Extension app: Embedded Content Contains Swift Code: YES . For the extension: Embedded Content Contains Swift Code: NO .

Reference: https://stackoverflow.com/a/25789145
Result: Same Error

  • Added the Run Script code in Native Extension Project for Target Extension
    cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/" if [[ -d "Frameworks" ]]; then rm -fr Frameworks fi

Reference: https://stackoverflow.com/a/33092433
Result: Unable to Build the App in Appcelerator Studio. Execution stops after
[INFO] : Initializing the build directory [INFO] : JavaScript files need to be encrypted [INFO] : Creating Xcode project

Setup details: Ti SDK : 7.1.1.GA
Ti CLI : 5.0.14
Node.js Version : 8.9.1
npm Version : 5.5.1
OS : Mac OS X

Kindly let me know if anything I am missing. Any help will be appreciated.

I solved my issue by replacing Swift Notification Extension Project with Objective-C Notification Extension Project. Actually this is weird because Swift Notification Extension Project works perfectly during Development. It causes problem only while publishing your App to the Store. This will help if someone is going through the same issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM