AppHubPlatform / apphub

apphub is an iOS client for AppHub
https://apphub.io
Other
206 stars 29 forks source link

AppHubTestUtils Group: Error #30

Open codeNgamer opened 8 years ago

codeNgamer commented 8 years ago

Not sure how I broke this but my project has been working for a while now without uploading any new builds. I recently however, added a bunch of third party frameworks through cocoa pods, everything continued to work fine (testing and building locally on my phone). However, as soon as I decided this new version was ready to go, I ran the build script in the root of my project.

node_modules/.bin/apphub build -o build.zip

All of a sudden, my project doesn't build anymore. I keep getting "cp: /Users/codeNpaper/Library/Developer/Xcode/DerivedData/trible-awrnadcirzvpsogljvduukttyuvj/Build/Intermediates/ArchiveIntermediates/trible/IntermediateBuildFilesPath/UninstalledProducts/iphoneos//usr/local/include/: No such file or directory"

codeNgamer commented 8 years ago

So what's weird is, the project builds when I simply run on the device but fails when i try to package it for upload to the store

codeNgamer commented 8 years ago

I've isolated the issue to this command:

/bin/cp -a "${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}/" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Versions/A/Headers"

in the prepare framework script for AppHubTestUtils, can you let me know what headers you're looking for so I can modify the appropriate environment variable that might have been changed during the pods installation process. Thanks

shaxbee commented 8 years ago

Same happens for me when linking AppHub project directly (without pods).

arbesfeld commented 8 years ago

Hm, it's possible that we don't need to prepare the framework at the end of the library build stage. If you guys could test #31 and let me know of that fixes things, I can cut a new release at some point today.

shaxbee commented 8 years ago

I'll check it in next 12hrs

shaxbee commented 8 years ago

Completely forgot about that issue. Tested now and fix #31 seems to work.

codeNgamer commented 8 years ago

Sorry I forgot to reply on here. I ended up going with a fix that was more of a hack really by hardcoding the path. I just upgraded to xcode 8.0 /ios 10 which caused a partial rewrite of some of my files like "appDelegate.m" and the problem occurs again. I have version 0.5.1 which includes #31 but the problem occurs regardless.

wluxion commented 8 years ago

Same issue here. Removing and reinstalling Apphub didn't work.

MDrooker commented 7 years ago

I'm getting this error. Was this solved with a workaround?

beau6183 commented 7 years ago

@codeNgamer @wluxion @MDrooker I simply removed libAppHubTestUtils.a from the list of linked binaries on my project.

BaloMueller commented 6 years ago

This problem still exists here!