Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Path Error in Flashlight Tutorial
Started by spencer0 Sep 26 2018 03:22 AM

6 replies to this topic
native path

Best Answer Rob Miracle , 27 September 2018 - 05:59 AM

One of our engineers posted this in the CDN slack channel to someone whose projects were borked by Xcode 10:

 

"Try to open your project file with sublime text, and replace `~` with `$HOME`"

 

I believe these have been fixed in recent daily builds for new projects built off of the App template, but existing projects will need to be updated.

 

Rob

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

spencer0

[GLOBAL: userInfoPane.html]
spencer0
  • Observer

  • 9 posts
  • Corona SDK

All of a sudden I am getting path errors whilst building the project. 

 

The scripts are trying to copy CoronaResources.bundle, Corona3rdPartyLicenses.txt etc

 

These files exist in ~/Library/Application Support/Corona/Native/Corona/ios/resource/ and are viewable in Xcode

 

The script seems to be joining 2 separate paths:

 

/Users/Spencer/Documents/Documents - iMac/CoronaNative/flashLight/ios/  AND

~/Library/Application Support/Corona/Native/Corona/ios/resource/CoronaResources.bundle

 

 

error: /Users/Spencer/Documents/Documents - iMac/CoronaNative/flashLight/ios/~/Library/Application Support/Corona/Native/Corona/ios/resource/CoronaResources.bundle: No such file or directory

 

 

I have several native projects that I have built in the past without issue. At present nothing will build.

 

I worked through the flashlight tutorial to see if that work and I get the same path issue.

 

The only thing I can think of is that I have downloaded a newer version of Corona and re-run the native setup script.

 

Any ideas on how to fix this?? I have attached the log

Attached Files



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,969 posts
  • Corona Staff

Have you updated to Xcode 10?



[TOPIC: post.html]
#3

spencer0

[GLOBAL: userInfoPane.html]
spencer0
  • Observer

  • 9 posts
  • Corona SDK

Yes. xCode Version 10.0 (10A255). 



[TOPIC: post.html]
#4

aexol

[GLOBAL: userInfoPane.html]
aexol
  • Observer

  • 13 posts
  • Corona SDK

Happens to me as well in every single application since the Xcode update.



[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,969 posts
  • Corona Staff

  Best Answer

One of our engineers posted this in the CDN slack channel to someone whose projects were borked by Xcode 10:

 

"Try to open your project file with sublime text, and replace `~` with `$HOME`"

 

I believe these have been fixed in recent daily builds for new projects built off of the App template, but existing projects will need to be updated.

 

Rob



[TOPIC: post.html]
#6

aexol

[GLOBAL: userInfoPane.html]
aexol
  • Observer

  • 13 posts
  • Corona SDK

Works like a charm. Thank you.



[TOPIC: post.html]
#7

spencer0

[GLOBAL: userInfoPane.html]
spencer0
  • Observer

  • 9 posts
  • Corona SDK

Thanks Rob. All Sorted




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: native, path