A mistake in 'Update Build Numbers Script' in Build Phases of DetoxInstruments and DTXProfiler targets.
YY-Wei opened this issue · 2 comments
YY-Wei commented
Build ERROR:
$(CURRENT_PROJECT_VERSION) + 1: syntax error: operand expected (error token is "$(CURRENT_PROJECT_VERSION) + 1")
Because
buildNumber=$(($buildNumber) + 1)
is wrong.
You should change it to:
buildNumber=$(($($buildNumber) + 1))
LeoNatan commented
What is the difference between $buildNumber
and $($buildNumber))
? For me the scripts work.
YY-Wei commented
What is the difference between
$buildNumber
and$($buildNumber))
? For me the scripts work.
sorry. It looks like it is a Xcode build bug. Just now, I use $buildNumber)
to rerun, it was OK. But about 30min ago , it was wrong and show the tips 'syntax error' above.How odd!