Can't build ProjectTemplates/App/ios starter project

When I try to build the starter project, xcode can not find the following file: 

#include <CoronaLua.h>    

 

plugin_library 1 issue

Lexical or Preprocessor Issue 

/Users/m/apps/xcode1/Plugin/PluginLibrary.h:11:10: ‘CoronaLua.h’ file not found

/Users/m/apps/xcode1/Plugin/PluginLibrary.mm:8:9: In file included from /Users/m/apps/xcode1/Plugin/PluginLibrary.mm:8: 

 

Why does the example not work out of the box? 

How do I tell xcode to look in /Applications/CoronaEnterprise/Corona folders to find these files?

Thanks

Mat

Make sure you install Corona Enterprise to /Applications/CoronaEnterprise 

You shouldn’t need to do anything else. You shouldn’t need to setup any symbolic links or anything else. 

Next copy the “App” folder to new location so you won’t mess with the original.

In the copy of the App folder, open the “ios” folder and double-click on the App.xcodeproj file. This will start Xcode if it’s not already open.  Click on the “Play” button, the Triangle near the top left of Xcode. You may get a few warnings, but it should eventually launch the Xcode simulator and attempt to get the definition of “Corona” which will display “No definition found”.

It looks like you’re trying to compile the plugin sample. I just double clicked on that project, hit the play button, and got no errors. The plugin won’t run anything, since it’s just making a plugin.

Have you followed these steps?

Rob

I reinstalled Corona Enterprise and now it works. Sorry for the red herring.

The default project builds successfully for iPhone simulator, but when I put my own Corona project in the /Corona folder, it fails, saying: 

 

Showing All Issues

Command /usr/bin/codesign failed with exit code 1

CodeSign /Users/m/Library/Developer/Xcode/DerivedData/App-ecqqkcwgkxqrgcdydbofwcrnjeks/Build/Products/Debug-iphonesimulator/App.app

    cd /Users/m/apps/ACE2/ios

    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

    

Signing Identity:     “-”

 

    /usr/bin/codesign --force --sign - --timestamp=none /Users/m/Library/Developer/Xcode/DerivedData/App-ecqqkcwgkxqrgcdydbofwcrnjeks/Build/Products/Debug-iphonesimulator/App.app

 

/Users/m/Library/Developer/Xcode/DerivedData/App-ecqqkcwgkxqrgcdydbofwcrnjeks/Build/Products/Debug-iphonesimulator/App.app: resource fork, Finder information, or similar detritus not allowed

Command /usr/bin/codesign failed with exit code 1

 

 

What files/settings within the Corona folder would affect Xcode’s ability to codesign the build?

 

 

Thanks

Mat

 

That sounds like some extended mac file attributes got copied in with the Corona files. This can include things like folder’s with icons on them or colored icons. You can open a terminal and go to your project folder and run:

xattr -cr

This should clear any extended attributes from your files.

Rob

Thanks Rob, that was the problem.

https://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-3-3-resource-fork-finder-information

This command worked for me:

find . -type f -name '\*.png' -exec xattr -c {} \;

Make sure you install Corona Enterprise to /Applications/CoronaEnterprise 

You shouldn’t need to do anything else. You shouldn’t need to setup any symbolic links or anything else. 

Next copy the “App” folder to new location so you won’t mess with the original.

In the copy of the App folder, open the “ios” folder and double-click on the App.xcodeproj file. This will start Xcode if it’s not already open.  Click on the “Play” button, the Triangle near the top left of Xcode. You may get a few warnings, but it should eventually launch the Xcode simulator and attempt to get the definition of “Corona” which will display “No definition found”.

It looks like you’re trying to compile the plugin sample. I just double clicked on that project, hit the play button, and got no errors. The plugin won’t run anything, since it’s just making a plugin.

Have you followed these steps?

Rob

I reinstalled Corona Enterprise and now it works. Sorry for the red herring.

The default project builds successfully for iPhone simulator, but when I put my own Corona project in the /Corona folder, it fails, saying: 

 

Showing All Issues

Command /usr/bin/codesign failed with exit code 1

CodeSign /Users/m/Library/Developer/Xcode/DerivedData/App-ecqqkcwgkxqrgcdydbofwcrnjeks/Build/Products/Debug-iphonesimulator/App.app

    cd /Users/m/apps/ACE2/ios

    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

    

Signing Identity:     “-”

 

    /usr/bin/codesign --force --sign - --timestamp=none /Users/m/Library/Developer/Xcode/DerivedData/App-ecqqkcwgkxqrgcdydbofwcrnjeks/Build/Products/Debug-iphonesimulator/App.app

 

/Users/m/Library/Developer/Xcode/DerivedData/App-ecqqkcwgkxqrgcdydbofwcrnjeks/Build/Products/Debug-iphonesimulator/App.app: resource fork, Finder information, or similar detritus not allowed

Command /usr/bin/codesign failed with exit code 1

 

 

What files/settings within the Corona folder would affect Xcode’s ability to codesign the build?

 

 

Thanks

Mat

 

That sounds like some extended mac file attributes got copied in with the Corona files. This can include things like folder’s with icons on them or colored icons. You can open a terminal and go to your project folder and run:

xattr -cr

This should clear any extended attributes from your files.

Rob

Thanks Rob, that was the problem.

https://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-3-3-resource-fork-finder-information

This command worked for me:

find . -type f -name '\*.png' -exec xattr -c {} \;